Spikard. RouteBuilder
(spikard v0.17.0-rc.1)
Copy Markdown
Builder for defining a route.
Summary
Functions
Attach a per-route maximum request body size in bytes, overriding the server-global default.
Attach a compression configuration for this route.
Attach a CORS configuration for this route.
Provide multipart file parameter configuration.
Declare the dependency keys that must be resolved before this handler runs.
Assign an explicit handler name.
Create a new builder for the provided HTTP method and path.
Provide a raw JSON schema for request parameters.
Provide a raw JSON schema for the request body.
Attach a per-route request timeout in seconds, overriding the server-global default.
Provide a raw JSON schema for the response body.
Mark the route as synchronous.
Types
@type t() :: %Spikard.RouteBuilder{ref: reference()}
Builder for defining a route.
Functions
Attach a per-route maximum request body size in bytes, overriding the server-global default.
Attach a compression configuration for this route.
Attach a CORS configuration for this route.
Provide multipart file parameter configuration.
Declare the dependency keys that must be resolved before this handler runs.
Assign an explicit handler name.
Create a new builder for the provided HTTP method and path.
Provide a raw JSON schema for request parameters.
Provide a raw JSON schema for the request body.
Attach a per-route request timeout in seconds, overriding the server-global default.
Provide a raw JSON schema for the response body.
Mark the route as synchronous.