aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-01-26 15:37:01 +0100
committerMartin Fischer <martin@push-f.com>2021-01-26 15:48:17 +0100
commit4502efc51474cdb7ffd0d77402f62aed8badf7bf (patch)
tree4ef9b5f6c80f5976b06b637b7141ccf3257d5ebc /README.md
parentfc15b41a37e123434ec39a277f107b78c1507bd8 (diff)
response: improve cookie & content-type methods
* add SputnikBuilder::set_cookie * make delete_cookie an independent method * add SputnikHeaders::content_type
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 56078ba..2932d70 100644
--- a/README.md
+++ b/README.md
@@ -126,7 +126,7 @@ let mut cookie = Cookie::new("userid",
cookie.set_secure(Some(true));
cookie.set_expires(expiry_date);
cookie.set_same_site(SameSite::Lax);
-resp.set_cookie(cookie);
+headers.set_cookie(cookie);
```
This session id cookie can then be retrieved and verified as follows: