Anthony Ramine
ac5d645ce5
Fix clippy lints
2022-10-18 17:44:21 -07:00
Jeremiah Senkpiel
1fe07df286
lint: fix clippy warnings
2022-06-20 11:36:38 -07:00
Yosh
8101b90999
Merge pull request #401 from u5surf/js-mime-rfc9239
...
Change MIME-Type of javascript
2022-06-07 15:43:18 +02:00
u5surf
f365fa68c0
Change MIME-Type of javascript
...
* it recommends MIME Type for javascript is `text/javascript`
* see RFC 9239
2022-06-07 19:34:17 +09:00
Yosh
ebe7e4de2d
Merge pull request #398 from janbaudisch/update-serde_qs
...
Update serde_qs to 0.9.1
2022-03-23 13:56:36 +01:00
Yosh
0b60560968
Merge pull request #397 from janbaudisch/update-infer
...
Update infer to 0.7.0
2022-03-23 13:55:47 +01:00
Jan Baudisch
2519f4a91c
Update serde_qs to 0.9.1
2022-03-23 13:19:00 +01:00
Jan Baudisch
3d904e678c
Update infer to 0.7.0
2022-03-23 12:31:26 +01:00
Yosh
2d3e391776
Merge pull request #394 from http-rs/hsts
...
Add typed `Strict-Transport-Security` header
2022-02-06 12:57:45 +01:00
Yoshua Wuyts
9579c07eb7
Add typed `Strict-Transport-Security` header
2022-02-04 19:03:55 +01:00
Yosh
4ea8ff1c34
Merge pull request #393 from http-rs/fix-duration-parsing
...
attempt to fix duration parsing
2022-02-04 18:32:07 +01:00
Yoshua Wuyts
21c5aa9905
attempt to fix duration parsing
2022-02-04 18:20:34 +01:00
Jeremiah Senkpiel
2858179881
Merge pull request #384 from sorcix/mimetypes
...
Add font and additional image mime types
2022-01-27 10:19:12 -08:00
Jeremiah Senkpiel
49dd60324d
Merge pull request #364 from pbzweihander/status-for-crate-error
...
Implement `Status` for `Result<T, http_types::Error>`
2022-01-27 10:16:17 -08:00
Yosh
b84a7a67e5
Merge pull request #391 from 06chaynes/cookie-v0.16
...
updates cookie to v0.16.0
2022-01-25 11:48:01 +01:00
Christian Haynes
583ae8910d
updated cookie to v0.16.0
2022-01-24 14:02:27 -05:00
Yosh
e0ae15c814
Merge pull request #389 from halvko/f-change-mime-negotiation
...
Change mime negotiation
2021-11-29 15:16:43 +01:00
rusty
97acd4d3f2
Fix type annotation error
2021-11-23 16:23:33 +09:00
rusty
220f7ea708
Implement Status for Result<T, crate::Error>
2021-11-23 16:23:32 +09:00
Yoshua Wuyts
014f301292
Merge pull request #387 from halvko/f-unsettable-mime
...
Make 'mime' field in Body optional
2021-11-08 11:01:47 +01:00
Erik Funder Carstensen
752479208b
Change reparse to cheap clone
2021-11-06 11:59:46 +01:00
Erik Funder Carstensen
42a4a080b0
Test new Accept negotiation behaviour
2021-11-06 00:56:44 +01:00
Erik Funder Carstensen
32d16b875d
Change Accept Mime negotiation
...
Previously we just checked whether one of the available mime types
equaled one of the accepted mime types. This commit extends Mime with
subset functionality, describing exactly a mime being accepted by an
accept header.
2021-11-06 00:52:57 +01:00
Vic Demuzere
9ffd9eb921
Add common video, audio, archies and syndication
...
References:
https://github.com/nginx/nginx/blob/master/conf/mime.types
https://www.iana.org/assignments/media-types/media-types.xhtml
2021-11-03 20:42:47 +01:00
Vic Demuzere
48e783f08f
Add font and additional image mime types
2021-11-03 20:42:46 +01:00
Erik Funder Carstensen
f0d3be8eae
Change signature of set_mime
2021-11-03 16:51:27 +01:00
Yoshua Wuyts
7d7323a2f6
Merge pull request #385 from halvko/main
...
Change signature of insertion/appending of headers
2021-11-03 16:49:19 +01:00
Erik Funder Carstensen
abefece02a
Fix errors in doc tests
2021-11-03 16:47:54 +01:00
Erik Funder Carstensen
6153663192
Make 'mime' field in Body optional
2021-11-03 16:47:54 +01:00
Erik Funder Carstensen
cc73cabeca
Return result from hyperium header conversion
2021-11-03 16:43:40 +01:00
Erik Funder Carstensen
0937e60091
Change signature of insertion/appending of headers
...
Currently the insert and append functions on Headers panics on illegal
header value encoding. This commit exposes that failure mode to the
library users by wrapping the return in a result instead.
This change exposes a possible optimization in places where insert/append
is called with values known to be safe by creating unsafe
insertion/appending functions. This commit does not implement any such
extensions.
2021-11-03 16:37:10 +01:00
Yoshua Wuyts
0127e5bdfd
Merge pull request #388 from halvko/f-fix-warnings
...
Fix clippy warnings
2021-11-03 16:15:49 +01:00
Erik Funder Carstensen
bd1d4a6766
Fix warnings thrown when testing
2021-11-03 12:12:51 +01:00
Erik Funder Carstensen
4f32bcddfb
Fix clippy warnings
2021-11-02 23:56:55 +01:00
Yoshua Wuyts
bcf1103381
Merge pull request #382 from u5surf/issue-362
...
Fix correct default weight in media_type_propose
2021-09-17 12:52:14 +02:00
u5surf
31533d9605
Fix correct default weight in media_type_propose
2021-09-16 22:27:21 +09:00
Jeremiah Senkpiel
56f2223590
Merge pull request #380 from AlyoshaVasilieva/typo
...
Fix canonical reason for 304 Not Modified
2021-08-16 11:35:27 -07:00
Malloc Voidstar
25acd089b4
Fix canonical reason for 304 Not Modified
2021-08-13 18:46:05 -07:00
Jeremiah Senkpiel
cb62676859
Merge pull request #375 from jbr/forwarded-header-bugs
...
address three bugs in forwarded header parsing
2021-08-05 09:42:12 -07:00
Jeremiah Senkpiel
90af4a92cf
Merge pull request #376 from kyle-mccarthy/main
...
feat: add TryFrom impl for HeaderName, HeaderValue, and Headers
2021-08-05 09:41:29 -07:00
Jeremiah Senkpiel
8b01eeca7c
refactor: remove trailing macro semicolons
...
See https://github.com/rust-lang/rust/issues/79813
2021-08-04 15:53:55 -07:00
Jeremiah Senkpiel
25d6af1edd
fix: address new clippy lints
...
- bool_assert_comparison
- needless_borrow
- clone_on_copy
2021-08-04 14:21:24 -07:00
Kyle McCarthy
dc33e614a8
feat: add TryFrom impl for HeaderName, HeaderValue, and Headers
2021-08-01 20:51:28 -05:00
Jacob Rothstein
4d65eaf790
address three bugs in forwarded header parsing
2021-07-30 15:11:36 -07:00
Jeremiah Senkpiel
affaf3fcf2
Merge pull request #373 from jbr/x-forwarded-host
...
add support for x-forwarded-host to proxies::Forwarded
2021-07-21 10:24:37 -07:00
Jacob Rothstein
255c6863a3
add support for x-forwarded-host to proxies::Forwarded
2021-07-15 10:29:12 -07:00
rusty
382bdf32a0
Expose reference of inner anyhow error with AsRef
2021-06-22 10:21:48 -07:00
rusty
c22ef5df3c
Update serde-qs
2021-06-21 22:36:15 -07:00
rusty
47e5fd6f54
Fix clippy warnings
2021-06-21 22:35:36 -07:00
Jeremiah Senkpiel
52cc143762
Merge pull request #359 from Fishrock123/fix-hyperium_http-headers-multiple
...
fix: append from hyperium translation
2021-04-27 10:35:14 -07:00