Crate rouille [] [src]

Modules

input

Macros

find_route!

Evaluates each parameter until one of them evaluates to something else than Err(RouteError::NoRouteFound).

router!

Equivalent to a match expression but for routes.

Structs

LogEntry

RAII guard that ensures that a log entry corresponding to a request will be written.

Request

Represents a request that your handler must answer to.

Response

Contains a prototype of a response. The response is only sent when you call Request::respond.

ResponseBody

An opaque type that represents the body of a response.

Session

Represents an entry in the sessions manager.

SessionsManager

Manages all active user sessions in memory.

Enums

RouteError

An error that one of your routes can return.

Functions

generate_session_id

Generates a string suitable for a session ID.

match_assets

Searches inside path for a file that matches the given request. If a file is found, returns a Response that would serve this file if returned.

start_server

Starts a server and uses the given requests handler.