Struct actix_web::dev::Router [] [src]

pub struct Router(_);

Interface for application router.

Methods

impl Router
[src]

[src]

Create new router

[src]

Router prefix

[src]

Server settings

[src]

Query for matched resource

[src]

Check if application contains matching route.

This method does not take prefix into account. For example if prefix is /test and router contains route /name, following path would be recognizable /test/name but has_route() call would return false.

[src]

Build named resource path.

Check [HttpRequest::url_for()](../struct.HttpRequest.html#method. url_for) for detailed information.

Trait Implementations

impl Clone for Router
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for Router

impl !Sync for Router