Struct actix_web::middleware::CookieSessionBackendBuilder [] [src]

pub struct CookieSessionBackendBuilder(_);

Structure that follows the builder pattern for building CookieSessionBackend structs.

To construct a backend:

  1. Call CookieSessionBackend::build to start building.
  2. Use any of the builder methods to set fields in the backend.
  3. Call finish to retrieve the constructed backend.

Example

use actix_web::middleware::CookieSessionBackend;

let backend: CookieSessionBackend = CookieSessionBackend::build(&[0; 32])
    .domain("www.rust-lang.org")
    .name("actix_session")
    .path("/")
    .secure(true)
    .finish();

Methods

impl CookieSessionBackendBuilder
[src]

[src]

[src]

Sets the path field in the session cookie being built.

[src]

Sets the name field in the session cookie being built.

[src]

Sets the domain field in the session cookie being built.

[src]

Sets the secure field in the session cookie being built.

[src]

Finishes building and returns the built CookieSessionBackend.