Std.Http.Server.Route
31 public declarations
- adding
&Std.Http.Server.Route.Router -> Std.Http.Server.Route.Route -> Std.Http.Server.Route.RouterA router with one more route after the ones it has.
- body
&Std.Http.Server.Route.Request -> StrThe body a request carried, as text; empty when the body was not UTF-8.
- bodyBytes
&Std.Http.Server.Route.Request -> BytesThe exact bytes of the body a request carried, whether or not they are text.
- carriesFields
&Std.Http.Server.Route.Request -> BoolWhether a request carried fields in the ordinary encoding.
- carriesForm
&Std.Http.Server.Route.Request -> BoolWhether a request carried a form with files in it.
- delete
Str -> fn(Std.Http.Server.Route.Request) -> Std.Http.Response -> Std.Http.Server.Route.RouteA route answering DELETE on a path.
- dispatch
&Std.Http.Server.Route.Router -> Std.Http.Server.Route.Request -> Std.Http.ResponseSend a request through a router.
- fieldsOf
&Std.Http.Server.Route.Request -> Map[Str, Str]The fields an ordinary form posted.
- formOf
&Std.Http.Server.Route.Request -> &Std.Http.Multipart.Limits -> Result[Array[Std.Http.Multipart.Part], Std.Http.Multipart.MultipartError]The form a request carried, when it carried one.
- get
Str -> fn(Std.Http.Server.Route.Request) -> Std.Http.Response -> Std.Http.Server.Route.RouteA route answering GET on a path.
- Handler
Str -> Std.Html.UnsafeWhat a handler is: a request in, a response out, and nothing else.
- header
&Std.Http.Server.Route.Request -> Str -> Option[Str]A header, found without regard to the case it was written in.
- joining
&Std.Http.Server.Route.Router -> &Std.Http.Server.Route.Router -> Std.Http.Server.Route.RouterTwo routers joined, the first tried before the second.
- Middleware
A step that wraps a handler.
- notFoundHandler
Std.Http.Server.Route.Request -> Std.Http.ResponseThe response a request nothing matched receives.
- on
Std.Http.Method -> Str -> fn(Std.Http.Server.Route.Request) -> Std.Http.Response -> Std.Http.Server.Route.RouteOne route, as a value.
- param
&Std.Http.Server.Route.Request -> Str -> Option[Str]A captured piece of the path, or nothing when the pattern captured none.
- patch
Str -> fn(Std.Http.Server.Route.Request) -> Std.Http.Response -> Std.Http.Server.Route.RouteA route answering PATCH on a path.
- pathOf
Str -> StrThe path a target names, with its query removed.
- post
Str -> fn(Std.Http.Server.Route.Request) -> Std.Http.Response -> Std.Http.Server.Route.RouteA route answering POST on a path.
- put
Str -> fn(Std.Http.Server.Route.Request) -> Std.Http.Response -> Std.Http.Server.Route.RouteA route answering PUT on a path.
- query
Str -> fn(Std.Http.Server.Route.Request) -> Std.Http.Response -> Std.Http.Server.Route.RouteA route for a request carrying its terms in its own body.
- queryOf
Str -> Map[Str, Str]The query a target carries, read once rather than by every handler.
- queryParam
&Std.Http.Server.Route.Request -> Str -> Option[Str]A query value, or nothing when the request carried none.
- Request
What a request is once it has been routed, and how a router decides.
- Route
One route: a method, a pattern, and what answers it.
- router
Std.Http.Server.Route.RouterA router with nothing in it, answering everything as not found.
- Router
Where requests are sent, and what answers the ones nothing matched.
- routing
&Array[Std.Http.Server.Route.Route] -> Std.Http.Server.Route.RouterA router over a list of routes.
- under
Str -> &Array[Std.Http.Server.Route.Route] -> Array[Std.Http.Server.Route.Route]Every route with a prefix in front of its pattern.
- withFallback
&Std.Http.Server.Route.Router -> fn(Std.Http.Server.Route.Request) -> Std.Http.Response -> Std.Http.Server.Route.RouterA router answering unmatched requests with something of its own.
