Package io.ktor.routing
Types
Evaluates a route as a result of the AND operation using two other selectors
Evaluates a route against a constant query parameter value
Evaluates a route against a request's host and port
Evaluates a route against a content-type in the HttpHeaders.Accept header in the request
Evaluates a route against a header in the request
Evaluates a route against an HttpMethod
Feature that ignores trailing slashes while resolving urls
Evaluate a route against the port on which the call was received.
Evaluates a route against an optional query parameter value and captures its value, if found
Evaluates a route as a result of the OR operation using two other selectors
Evaluates a route against a query parameter value and captures its value
Evaluates a route against a constant path segment
Evaluates a route against an optional parameter path segment and captures its value, if any
Evaluates a route against a parameter path segment and captures its value
Helper object for building instances of RouteSelector from path segments
Evaluates a route against any number of trailing path segments, and captures their values
Evaluates a route against any single path segment
The selector for routing root.
Describes a node in a routing tree.
Base type for all routing selectors
Represents a result of a route evaluation against a call
Root routing node for an Application
Represents an application call being handled by Routing
Represents an application request being handled by Routing
Represents an application response being handled by Routing
Represents a parsed routing path. Consist of number of segments parts
Represent a single routing path segment
Possible routing path segment kinds
Represents a context in which routing resolution is being performed
Represents a result of routing resolution.
Represents the trace of routing resolution process for diagnostics.
Represents a single entry in the RoutingResolveTrace.
Evaluates a route against a single trailing slash
Functions
Builds a route to match requests with HttpHeaders.Accept header matching specified contentType
Builds a route to match requests with HttpHeaders.ContentType header matching specified contentType
Create a routing entry for specified path
Builds a route to match DELETE
requests
Builds a route to match DELETE
requests with specified path
Builds a route to match GET
requests
Builds a route to match GET
requests with specified path
Builds a route to match HEAD
requests
Builds a route to match HEAD
requests with specified path
Create a route to match request host and port. There are no any host resolutions/transformations applied to a host: a request host is treated as a string.
Builds a route to match OPTIONS
requests
Builds a route to match OPTIONS
requests with specified path
Builds a route to match PATCH
requests receiving request body content of type R
Builds a route to match PATCH
requests
Builds a route to match PATCH
requests with specified path
Builds a route to match POST
requests receiving request body content of type R
Builds a route to match POST
requests
Builds a route to match POST
requests with specified path
Builds a route to match PUT
requests with receiving request body content of type R
Builds a route to match PUT
requests
Builds a route to match PUT
requests with specified path
Gets or installs a Routing feature for the this Application and runs a configuration script on it
Properties
Gets an Application for this Route by scanning the hierarchy to the root