mirror of https://github.com/fafhrd91/actix-web
fix doc test
This commit is contained in:
parent
09d7f7361e
commit
4326abb729
|
@ -157,6 +157,10 @@ awc = { path = "awc" }
|
|||
name = "test_server"
|
||||
required-features = ["compress-brotli", "compress-gzip", "compress-zstd", "cookies"]
|
||||
|
||||
[[test]]
|
||||
name = "compression"
|
||||
required-features = ["compress-brotli", "compress-gzip", "compress-zstd"]
|
||||
|
||||
[[example]]
|
||||
name = "basic"
|
||||
required-features = ["compress-gzip"]
|
||||
|
|
|
@ -242,9 +242,10 @@ impl HttpResponseBuilder {
|
|||
/// use actix_web::{HttpResponse, cookie::Cookie};
|
||||
///
|
||||
/// // the name, domain and path match the cookie created in the previous example
|
||||
/// let mut cookie = Cookie::new("name", "value-does-not-matter");
|
||||
/// let mut cookie = Cookie::build("name", "value-does-not-matter")
|
||||
/// .domain("www.rust-lang.org")
|
||||
/// .path("/");
|
||||
/// .path("/")
|
||||
/// .finish();
|
||||
/// cookie.make_removal();
|
||||
///
|
||||
/// let res = HttpResponse::Ok()
|
||||
|
|
Loading…
Reference in New Issue