Athena::Routing::RequestContext
Represents data from a request in an agnostic manner, primarily used to augment URL matching and generation with additional context.
Constructors
from_uri(uri : String, host : String = "localhost", scheme : String = "http", http_port : Int32 = 80, https_port : Int32 = 443) : self
Creates a new instance of self from the provided uri. The host, scheme, http_port, and https_port optionally act as fallbacks if they are not contained within the uri.
from_uri(uri : URI, host : String = "localhost", scheme : String = "http", http_port : Int32 = 80, https_port : Int32 = 443) : self
Creates a new instance of self from the provided uri. The host, scheme, http_port, and https_port optionally act as fallbacks if they are not contained within the uri.
Instance methods
apply(request : ART::Request) : self
Updates the properties within self based on the provided request.
base_url
Represents the path of the URL before #path.
E.g. a path that should be prefixed to all other #paths.
host
Sourcehttp_port
Sourcehttps_port
Sourcemethod
Sourceparameters
Returns the global parameters that should be used as part of the URL generation logic.
path
Sourcescheme
Source