diff options
author | Martin Fischer <martin@push-f.com> | 2021-01-26 15:37:01 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-01-26 15:48:17 +0100 |
commit | 4502efc51474cdb7ffd0d77402f62aed8badf7bf (patch) | |
tree | 4ef9b5f6c80f5976b06b637b7141ccf3257d5ebc /README.md | |
parent | fc15b41a37e123434ec39a277f107b78c1507bd8 (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.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |