Commit Graph

2499 Commits

Author SHA1 Message Date
Aaron Weiss
f9ed262904 Fixed compilation for Rust master. 2014-12-21 10:25:38 -05:00
Sean McArthur
6a82297984 Merge pull request #137 from reem/crates-io-release
feat(cargo): prepare for crates.io release.
2014-12-20 13:31:23 -08:00
Jonathan Reem
5683e016c7 (release) 0.0.14. 2014-12-20 03:07:56 -08:00
Jonathan Reem
618f95e10a (fix) Update examples and benchmarks to remove rust-http. 2014-12-20 03:07:05 -08:00
Jonathan Reem
06a9ccf978 (fix) Use the clone implementation for &str. 2014-12-20 02:39:29 -08:00
Jonathan Reem
90925f05ee (fix) Add semicolons at macro invocation sites. 2014-12-20 02:38:03 -08:00
Jonathan Reem
15bac9dadc (release) 0.0.13. 2014-12-16 04:02:57 -08:00
Jonathan Reem
39c548dc39 feat(cargo): prepare for crates.io release. 2014-12-16 04:02:13 -08:00
Sean McArthur
00c6808c6b Merge pull request #198 from Ogeon/master
Rust update: Remove proc and implementation of AnyRefExt for static NetworkStream
2014-12-15 16:24:15 -08:00
Erik Hedvall
02ecad33cd Change implementation of AnyRefExt for references to NetworkStream to require 'static lifetime 2014-12-16 00:07:07 +01:00
Erik Hedvall
9896bcc517 proc() -> move || 2014-12-16 00:02:35 +01:00
Sean McArthur
d19cfed422 Merge pull request #182 from hyperium/client
feat(client): add a new Client struct with super powers
2014-12-14 12:02:13 -08:00
Sean McArthur
8c83a3358e feat(client): add a new Client struct with super powers
- Includes ergonomic traits like IntoUrl and IntoBody, allowing easy
usage.
- Client can have a RedirectPolicy.
- Client can have a SslVerifier.

Updated benchmarks for client. (Disabled rust-http client bench since it
hangs.)
2014-12-14 11:56:39 -08:00
Sean McArthur
2d6c8819cd Merge pull request #193 from wenderen/vary-header
add vary header, first draft
2014-12-13 12:31:40 -08:00
Sean McArthur
9e99c57fa8 Merge pull request #195 from hyperium/rustup
rust upgrade
2014-12-12 13:46:30 -08:00
Sean McArthur
0bba6e80ee rust upgrade 2014-12-12 12:24:54 -08:00
Rohan Prinja
258e739ef8 add vary header, first draft 2014-12-12 19:12:55 +05:30
Sean McArthur
5e560cb1c1 Merge pull request #192 from hyperium/ssl-set-hostname
fix(ssl): set_hostname on ssl connections
2014-12-11 21:04:21 -08:00
Sean McArthur
1d7ec47807 Merge pull request #191 from reem/max-header-lengths
(fix) Harden header parsing against memory exhaustion attacks.
2014-12-11 20:31:44 -08:00
Sean McArthur
3ac277b1f0 fix(ssl): set_hostname on ssl connections 2014-12-11 20:27:37 -08:00
Jonathan Reem
b1ab03f7f8 (fix) Harden header parsing against memory exhaustion attacks.
Adds new limits on the lengths of header names and fields.

Fixes #187
2014-12-11 17:08:57 -08:00
Sean McArthur
7f931845cc Merge pull request #188 from wenderen/allow-header
Allow header

Closes #174
2014-12-10 10:59:34 -08:00
Rohan Prinja
4bae6b7e0e add allow header 2014-12-11 00:18:32 +05:30
Sean McArthur
e4bf1155de Merge pull request #186 from hyperium/declone
rustup for clone trait
2014-12-09 17:03:34 -08:00
Sean McArthur
89bedd30ba rustup for clone trait 2014-12-09 16:50:49 -08:00
Sean McArthur
514f96e9eb Merge pull request #180 from wenderen/etag-header
add etag header
2014-12-07 23:48:10 -08:00
Rohan Prinja
c4efa80fb5 add etag header 2014-12-08 13:08:53 +05:30
Sean McArthur
db2a9f40d8 Merge pull request #184 from cmr/if-modified-since
Add missing reexport
2014-12-07 15:57:26 -08:00
Corey Richardson
6d91693a41 Add missing reexport 2014-12-07 18:51:50 -05:00
Sean McArthur
0903340905 Merge pull request #183 from cmr/if-modified-since
header: add If-Modified-Since support
2014-12-07 15:50:06 -08:00
Corey Richardson
e2d387d118 header: add If-Modified-Since support 2014-12-07 18:48:05 -05:00
Sean McArthur
5b49076d65 Merge pull request #181 from hyperium/rustup
rustup
2014-12-06 10:52:37 -08:00
Sean McArthur
debebe8fbe rustup 2014-12-06 10:52:00 -08:00
Sean McArthur
ae88092587 Merge pull request #168 from hyperium/ssl-verify
r=reem
2014-12-04 17:41:42 -08:00
Sean McArthur
36429ab50c refactor(net): NetworkConnecter no longer is for static usage
Instead, you can use an instance of a NetworkConnector with
`Request::with_connector`. This allows overloading of the NetworkStream
constructors, so that it is easy to modify how an `HttpStream` is
created, while still relying on the rest of the stream implementation.

BREAKING CHANGE
2014-12-04 17:39:38 -08:00
Sean McArthur
e6feb34f1b Merge pull request #176 from kyledewey/remove_equiv
Removed now-deprecated Equiv implementation
2014-12-04 14:27:24 -08:00
Kyle Dewey
4febf65a88 Removed now-deprecated Equiv implementation 2014-12-04 14:10:56 -08:00
Sean McArthur
9a2605a138 Merge pull request #165 from hyperium/expires
Adds CacheControl, Expires, and LastModified headers
2014-12-02 21:22:32 -08:00
Sean McArthur
e19330326d Merge pull request #161 from hyperium/mucell
refactor(headers): changed from rwlock to mucell underneath
2014-12-02 21:20:52 -08:00
Sean McArthur
ad22d79815 Merge pull request #166 from s-panferov/feature/client-cookies
Add more functions for client to work with cookies.
2014-12-02 13:43:30 -08:00
Stanislav Panferov
6a8864cc27 Add more functions for client to work with cookies. Fixes #155. 2014-12-03 00:33:25 +03:00
Sean McArthur
0ccd1acaa1 Merge pull request #167 from hyperium/rustup
rust upgrade
2014-12-02 13:19:17 -08:00
Sean McArthur
fec030a21e rust upgrade 2014-12-02 13:12:04 -08:00
Sean McArthur
f182f53210 feat(headers): add CacheControl header 2014-12-01 19:58:07 -08:00
Sean McArthur
1ed4ea5a27 Merge pull request #164 from dpc/issue-163
Fix Issue 163
2014-12-01 09:38:44 -08:00
Dawid Ciężarkiewicz
f5a7d7cfa1 Tests for "Fix handling long Reason Phrase"
Issue #163
2014-11-30 18:37:21 -08:00
Dawid Ciężarkiewicz
f3a5c0124a Fix handling long Reason Phrase
rfc2616 does not specify the maximum length of *Reason Phrase* so it's
a good practice to handle even unreasonably long input.

16 char. buffer is not enough to correctly handle even the common `304
Moved Permanently`. Increase buffer size to more realistic 32. Also, up
to 128 more characters will be read and ignored, providing even greater
versatility without increasing memory usage.

Issue #163
2014-11-30 18:37:14 -08:00
Sean McArthur
0297147dd1 feat(headers): add LastModified header 2014-11-30 15:59:40 -08:00
Sean McArthur
e255f88dd2 feat(headers): add Expires header 2014-11-30 15:47:02 -08:00
Sean McArthur
d71d6549f7 refactor(headers): changed from rwlock to mucell underneath 2014-11-29 22:06:48 -08:00