1
0
mirror of https://github.com/actix/examples synced 2025-06-27 01:27:43 +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

@ -70,11 +70,16 @@ async fn handle_post_3(req: HttpRequest, params: web::Form<MyParams>) -> impl Re
#[cfg(test)]
mod tests {
use actix_web::body::to_bytes;
use actix_web::dev::{Service, ServiceResponse};
use actix_web::http::{header::HeaderValue, header::CONTENT_TYPE, StatusCode};
use actix_web::test::{self, TestRequest};
use actix_web::web::{Bytes, Form};
use actix_web::{
body::to_bytes,
dev::{Service, ServiceResponse},
http::{
header::{HeaderValue, CONTENT_TYPE},
StatusCode,
},
test::{self, TestRequest},
web::{Bytes, Form},
};
use super::*;