1
0
mirror of https://github.com/actix/examples synced 2025-06-26 09:17:41 +02:00

add session ttl customization example

This commit is contained in:
Rob Ede
2022-08-28 18:39:28 +01:00
parent d259177eab
commit fcd013fcde
18 changed files with 84 additions and 60 deletions

View File

@ -1,11 +1,14 @@
use std::collections::HashMap;
use actix_web::body::BoxBody;
use actix_web::dev::ServiceResponse;
use actix_web::http::header::ContentType;
use actix_web::http::StatusCode;
use actix_web::middleware::{ErrorHandlerResponse, ErrorHandlers};
use actix_web::{error, middleware, web, App, Error, HttpResponse, HttpServer, Result};
use actix_web::{
body::BoxBody,
dev::ServiceResponse,
error,
http::{header::ContentType, StatusCode},
middleware,
middleware::{ErrorHandlerResponse, ErrorHandlers},
web, App, Error, HttpResponse, HttpServer, Result,
};
use serde_json::json;
use tinytemplate::TinyTemplate;