Commit Graph

514 Commits

Author SHA1 Message Date
Renée Kooi a9885f1603
Main branch renamed to `main` (#226) 2020-08-09 15:17:50 +02:00
Yoshua Wuyts 1b5d4f2917
Merge pull request #217 from http-rs/timing-allow-origin-sec
Move TimingAllowOrigin to security submodule
2020-08-08 21:56:08 +02:00
Yoshua Wuyts b59d11f807
Merge pull request #219 from http-rs/cache-age-header
Cache age header
2020-08-08 14:43:17 +02:00
Yoshua Wuyts c065bfdaf7
Merge pull request #211 from http-rs/etag
Typed ETags
2020-08-08 14:41:46 +02:00
Yoshua Wuyts 2e4771cc9b Add Age::from_secs 2020-08-07 21:41:41 +02:00
Yoshua Wuyts f1233968fb add a structured cache::Age header 2020-08-07 17:55:07 +02:00
Yoshua Wuyts 2f3d1c792e Move TimingAllowOrigin to security submodule 2020-08-07 17:25:52 +02:00
Yoshua Wuyts 55bb472934 new conditional submodule for etag 2020-08-07 16:56:43 +02:00
Yoshua Wuyts 4272252c65 Finalize etags 2020-08-07 16:56:43 +02:00
Yoshua Wuyts 37c7b02c9e init 2020-08-07 16:56:43 +02:00
Yoshua Wuyts 7b0a1b3a69
Merge pull request #210 from http-rs/cache-control
Cache control
2020-08-07 16:55:18 +02:00
Yoshua Wuyts d4f85bee0f
Merge pull request #216 from yusuke-ota/make_statuscode_from_u16_in_error
Make statuscode from u16 in error
2020-08-07 16:54:13 +02:00
yusuke-ota f26568cc24 Commit suggestion. 2020-08-07 19:37:21 +09:00
yusuke-ota d0aed08a39 enable Error::new(u16, error) and Error::from_str(u16, msg)
change status that Error::new and Error::from_str argument
status: StatusCode
->
status: S
S: TryInto<StatusCode>
S::Error: Debug
2020-08-07 19:13:30 +09:00
Yoshua Wuyts 6274ecd6b5 v2.4.0 2020-08-05 19:03:42 +02:00
Yoshua Wuyts 67a4335f5f
Merge pull request #209 from http-rs/timing-allow-origin
Timing allow origin
2020-08-05 18:40:39 +02:00
Yoshua Wuyts 3af9864094
Apply suggestions from code review 2020-08-04 11:52:10 +02:00
Yoshua Wuyts be286d5c4b
Update src/cache/cache_control/cache_directive.rs 2020-08-04 11:51:54 +02:00
Yoshua Wuyts eb4ef13ef5
Apply suggestions from code review
Co-authored-by: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2020-08-04 11:51:25 +02:00
Yoshua Wuyts 60a5cd9ede allow clippy 2020-08-02 11:32:46 +02:00
Yoshua Wuyts e78336e2e7 cache mod docs 2020-08-02 11:11:09 +02:00
Yoshua Wuyts 8e2341810f fix cache-control bugs & polish 2020-08-02 10:50:30 +02:00
Yoshua Wuyts 93c3f4c14e test passes 2020-08-02 01:02:19 +02:00
Yoshua Wuyts 4864e5e490 finish base impl 2020-08-02 00:48:35 +02:00
Yoshua Wuyts b68fbe190b progress 2020-08-02 00:40:18 +02:00
Yoshua Wuyts c940f57889 init cache control 2020-07-31 23:24:09 +02:00
Yoshua Wuyts 79a7c5fca2 init cache control 2020-07-31 23:06:59 +02:00
Yoshua Wuyts babd65ec7b Fix clippy warnings 2020-07-31 22:54:13 +02:00
Yoshua Wuyts 43aea7157b Finalize Allow-Origin 2020-07-31 22:54:13 +02:00
Yoshua Wuyts 79f863b31b init Timing-Allow-Origin headers 2020-07-31 22:54:11 +02:00
Yoshua Wuyts a50b9b982f
Merge pull request #204 from http-rs/standardize-trace
Standardize trace
2020-07-31 22:50:05 +02:00
Jacob Rothstein bbd63d8f57 support anyhow::Error into http_types:Error 2020-07-27 17:57:32 -07:00
Jacob Rothstein d8944ce147 enable serde feature on url 2020-07-24 14:10:25 -07:00
Yoshua Wuyts 677e2807e1 Make TraceContext::from_headers return Result<Option<Self>> 2020-07-24 13:52:47 +02:00
Yoshua Wuyts 4ccebc9ff2 fix failing test 2020-07-24 13:52:47 +02:00
Yoshua Wuyts 445c5fe553 Make TraceContext::new return Option<Self> 2020-07-24 13:52:47 +02:00
Yoshua Wuyts 4f6ca0471c fix trace-context 2020-07-24 13:52:47 +02:00
Yoshua Wuyts d9949505cd Standardize trace headers
Brings it in line with the naming of other headers we have; sets us up to remove the unstable feature gate.
2020-07-24 13:52:47 +02:00
Yoshua Wuyts 963aa811af
Merge pull request #203 from http-rs/server-timings
Add trace::ServerTiming
2020-07-24 13:52:01 +02:00
Yoshua Wuyts 5780f550d6 Return Result<Option<Self>> from ServerTiming::from_headers 2020-07-24 12:22:27 +02:00
Yoshua Wuyts 553dcafd29 Make ServerTiming::new return Option<Self> 2020-07-23 20:37:51 +02:00
Yoshua Wuyts fa38adca23 User ServerTiming::value internally
Fixes a bug!
2020-07-23 15:46:15 +02:00
Yoshua Wuyts d1a631f504 Fix mere conflicts and finalize standardization
It compiles now!
2020-07-23 15:25:56 +02:00
Yoshua Wuyts 68767e95af Merge branch 'server-timings' of https://github.com/http-rs/http-types into server-timings 2020-07-23 11:39:47 +02:00
Yoshua Wuyts f101cd4f45 standardize 2020-07-23 11:39:41 +02:00
Yoshua Wuyts 65897de332 push 2020-07-23 11:38:43 +02:00
Yoshua Wuyts 4351dc6936 Add ServerTiming parsing 2020-07-22 18:03:18 +02:00
Yoshua Wuyts b13d9f61fc implement server timing entry parsing 2020-07-22 15:31:21 +02:00
Yoshua Wuyts e4efa9df38 implement serialization for server timing entry 2020-07-21 18:28:54 +02:00
Yoshua Wuyts 66caf81f68 iterators for ServerTiming events 2020-07-21 17:13:39 +02:00