mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
add session ttl customization example
This commit is contained in:
@ -3,10 +3,9 @@ use std::{
|
||||
task::{Context, Poll},
|
||||
};
|
||||
|
||||
use actix_web::Error;
|
||||
use actix_web::{
|
||||
dev::{Service, ServiceRequest, ServiceResponse, Transform},
|
||||
HttpMessage,
|
||||
Error, HttpMessage,
|
||||
};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
@ -1,9 +1,10 @@
|
||||
use std::future::{ready, Ready};
|
||||
|
||||
use actix_web::body::EitherBody;
|
||||
use actix_web::dev::{self, ServiceRequest, ServiceResponse};
|
||||
use actix_web::dev::{Service, Transform};
|
||||
use actix_web::{http, Error, HttpResponse};
|
||||
use actix_web::{
|
||||
body::EitherBody,
|
||||
dev::{self, Service, ServiceRequest, ServiceResponse, Transform},
|
||||
http, Error, HttpResponse,
|
||||
};
|
||||
use futures_util::future::LocalBoxFuture;
|
||||
|
||||
pub struct CheckLogin;
|
||||
|
Reference in New Issue
Block a user