Struct resty::Router [] [src]

pub struct Router { /* fields omitted */ }

Resty router. TODO [ToDr] More docs

Methods

impl Router
[src]

[src]

Creates a new instance of router.

[src]

Pretty-prints the endpoints handled by given router.

[src]

Compose with some other router under given prefix.

[src]

Consume the router and start HTTP server on given address.

[src]

Declare endpoint.

[src]

Declare GET endpoint.

[src]

Declare POST endpoint.

[src]

Declare PUT endpoint.

[src]

Declare PATCH endpoint.

[src]

Declare DELETE endpoint.

Trait Implementations

impl Default for Router
[src]

[src]

Returns the "default value" for a type. Read more

impl Debug for Router
[src]

[src]

Formats the value using the given formatter.