Commit Graph

110 Commits

Author SHA1 Message Date
Sean McArthur
53a2233912 Merge pull request #696 from hyperium/promote-timeouts
feat(all): add socket timeouts
2015-11-24 12:01:29 -08:00
Sean McArthur
fec6e3e873 feat(all): add socket timeouts
Methods added to `Client` and `Server` to control read and write
timeouts of the underlying socket.

Keep-Alive is re-enabled by default on the server, with a default
timeout of 5 seconds.

BREAKING CHANGE: This adds 2 required methods to the `NetworkStream`
  trait, `set_read_timeout` and `set_write_timeout`. Any local
  implementations will need to add them.
2015-11-24 10:58:58 -08:00
Sean McArthur
c747f99d21 chore(dependencies): update language tags to 0.2
BREAKING CHANGE: LanguageTags api is changed.
2015-11-24 10:37:09 -08:00
Jonathan Reem
b4a9227204 Merge pull request #685 from untitaker/url-update
chore(cargo): Update url crate to 0.5
2015-11-22 16:44:10 -08:00
Markus Unterwaditzer
78752c0c55 chore(cargo): Update url crate to 0.5 2015-11-22 19:32:09 +01:00
Sean McArthur
81d42c964e chore(dependencies): update openssl to 0.7 and cookie to 0.2
Closes #686
2015-11-20 11:12:56 -08:00
Sean McArthur
2bb906ad7f v0.6.16 2015-11-16 10:45:33 -08:00
Sean McArthur
d16ef6d9d4 v0.6.15 2015-10-20 17:38:58 -07:00
Sean McArthur
79a99eec8c chore(cargo): update httparse to 1.0 2015-09-28 13:04:06 -07:00
Sean McArthur
1fbed4b026 v0.6.14 2015-09-21 14:22:05 -07:00
Sean McArthur
3d05a90eef v0.6.13 2015-09-11 13:40:38 -07:00
Sean McArthur
b833f67780 v0.6.12 2015-09-01 18:12:18 -07:00
Sean McArthur
5e0b952a37 v0.6.11 2015-08-27 15:50:52 -07:00
Sean McArthur
295e8e4708 v0.6.10 2015-08-19 14:57:00 -07:00
Sean McArthur
da2d29309a v0.6.9 2015-08-13 14:59:17 -07:00
Sean McArthur
0aaa351fe2 chore(cargo): update unicase version to 1.0 2015-08-13 14:58:07 -07:00
Sean McArthur
884fb1bbd9 v0.6.8 2015-08-03 12:07:41 -07:00
Sean McArthur
38d08e0213 v0.6.7 2015-08-03 12:06:15 -07:00
Sean McArthur
5ca84f1666 chore(cargo): update mime dependency to 0.1 2015-08-03 12:06:15 -07:00
Sean McArthur
7d1f154cb7 feat(net): add socket timeouts to Server and Client
While these methods are marked unstable in libstd, this is behind a
feature flag, `timeouts`. The Client and Server both have
`set_read_timeout` and `set_write_timeout` methods, that will affect all
connections with that entity.

BREAKING CHANGE: Any custom implementation of NetworkStream must now
  implement `set_read_timeout` and `set_write_timeout`, so those will
  break. Most users who only use the provided streams should work with
  no changes needed.

Closes #315
2015-07-27 09:57:59 -07:00
Jonathan Reem
421422b620 v.0.6.6 2015-07-25 11:09:59 -07:00
Sean McArthur
aaf7995b43 v0.6.5 2015-07-23 13:43:42 -07:00
Sean McArthur
71db6a46c0 refactor(ssl): use openssl::DirectStreams 2015-07-23 13:13:43 -07:00
Jonathan Reem
7b108466f6 v0.6.4 2015-07-10 20:43:51 -07:00
Patrick Walton
87de1b77bc feat(http): add optional serialization of common types via serde
This is behind a Cargo feature to avoid forcing downstream users to
depend on `serde`. It is needed for Servo IPC to work.
2015-07-10 17:45:08 -07:00
Sean McArthur
623824d8b2 v0.6.3 2015-07-08 10:33:37 -07:00
Sean McArthur
3964a6bd3e v0.6.2 2015-07-06 15:23:03 -07:00
Sean McArthur
990819a6d6 v0.6.1 2015-06-26 21:28:40 -07:00
Sean McArthur
31e5a91350 Merge pull request #582 from mlalic/issue-580
refactor(http2): move to solicit v0.4
2015-06-26 21:18:22 -07:00
Sebastian Thiel
9af2b66fe4 fix(cargo): fix linking on OSX 10.10
On OSX 10.10, attempting to run `cargo test` will yield a
[linker error](https://gist.github.com/Byron/b7a50cdcf7c60234335d).

Just removing the feature fixes the issue, even though I am not
sure if it is breaking something further down the line.
2015-06-26 15:39:17 +02:00
Marko Lalic
526ce994a3 refactor(http2): move to solicit v0.4
Only minor details in the internals of the `h2` module needed tweaking
for migrating onto the latest version -- `HttpConnect` implementations
are now required to return an error type that implements an
`HttpConnectError` trait.
2015-06-26 14:53:58 +02:00
Sean McArthur
5bf91f09ee v0.6.0 2015-06-25 10:21:44 -07:00
Pyfisch
99ff7e6257 feat(langtags): use true language tags in headers
Make hyper dependant on rust-language-tags providing complete parsing
and formatting of language tags. Remove builtin solution for simple
tags.

BREAKING CHANGE: AcceptLanguage and ContentLanguage use LanguageTag now,
Language removed from Hyper.
2015-06-23 20:15:47 +02:00
Sean McArthur
53bba6eb7f feat(ssl): redesign SSL usage
BREAKING CHANGE: Server::https was changed to allow any implementation
  of Ssl. Server in general was also changed. HttpConnector no longer
  uses SSL; using HttpsConnector instead.
2015-06-20 14:58:58 -07:00
Marko Lalic
3122ffefc2 feat(http2): add dependency on solicit 2015-06-02 14:34:13 +02:00
Sean McArthur
0cd7e9d91f v0.5.2 2015-06-01 11:42:58 -07:00
Sean McArthur
9dc85279ac v0.5.1 2015-05-25 08:58:44 -07:00
Sean McArthur
6803ef3956 v0.5.0 2015-05-12 18:25:33 -07:00
Sean McArthur
af2daac33b chore(cargo): set stricter versions for dependencies 2015-05-11 19:09:50 -07:00
Sean McArthur
38f40c7f6a v0.4.0 2015-05-07 13:47:57 -07:00
Sean McArthur
da62ed4226 v0.3.16 2015-05-01 17:38:43 -07:00
Sean McArthur
06d0091b6d v0.3.15 2015-04-29 14:10:09 -07:00
Sean McArthur
6fad307753 v0.3.14 2015-04-18 20:48:28 -07:00
Sean McArthur
d3b1c80bb5 v0.3.13 2015-04-17 14:45:32 -07:00
Sean McArthur
9a8ea4a267 v0.3.12 2015-04-15 21:40:19 -07:00
Sean McArthur
55b37f0148 test(beta): enable testing on beta rustc 2015-04-15 11:59:23 -07:00
Jonathan Reem
ad797b0200 v0.3.11 2015-04-08 17:22:35 -07:00
Sean McArthur
8f1c82901e v0.3.10 2015-04-06 11:14:31 -07:00
Sean McArthur
4fecd64c0f v0.3.9 2015-04-03 09:57:53 -07:00
Jonathan Reem
320d10d50d chore(all): Move downcasting to a stable implementation. 2015-04-02 13:30:41 -07:00