Sean McArthur
7c0421e3fc
feat(error): add private __Nonexhaustive variant to Error
...
BREAKING CHANGE: Adds a new variant to public Error enum. The proper fix
is to stop matching exhaustively on `hyper::Error`.
2015-06-02 10:25:01 -07:00
Sean McArthur
486a219bc8
Merge pull request #448 from mlalic/http2-initial
...
feat(client): initial support for HTTP/2
2015-06-02 10:11:45 -07:00
Marko Lalic
6504936023
docs(examples): add an example using an HTTP/2 client
2015-06-02 15:44:12 +02:00
Marko Lalic
f0fe2c5a83
feat(http2): implement message API for HTTP/2
2015-06-02 15:44:12 +02:00
Marko Lalic
48e9ca2f70
feat(http2): add new error variant for HTTP/2
...
Automatic conversion from the `solicit::http::HttpError` is also
provided.
BREAKING CHANGE: A new variant `Http2` added to a public enum
`hyper::Error`.
2015-06-02 14:34:13 +02:00
Marko Lalic
3122ffefc2
feat(http2): add dependency on solicit
2015-06-02 14:34:13 +02:00
Marko Lalic
d3e3a45760
refactor(client): use a Protocol to create a message for a Request
2015-06-02 14:34:13 +02:00
Marko Lalic
dccdf8d65a
feat(client): implement Protocol trait for HTTP/1.1
2015-06-02 14:34:13 +02:00
Marko Lalic
3417303a4a
feat(client): add Protocol trait
2015-06-02 14:34:13 +02:00
Marko Lalic
aa297f4532
refactor(client): use HttpMessage in Request and Response
...
BREAKING CHANGE: `hyper::client::request::Response` is no longer generic
over `NetworkStream` types. It no longer requires a generic type
parameter at all.
2015-06-02 14:34:13 +02:00
Marko Lalic
ecb713f849
feat(client): implement HttpMessage for HTTP/1.1
2015-06-02 14:34:13 +02:00
Marko Lalic
289fd02b55
feat(client): add HttpMessage trait
2015-06-02 14:34:13 +02:00
Sean McArthur
0cd7e9d91f
v0.5.2
2015-06-01 11:42:58 -07:00
Sean McArthur
b29d96bc2b
chore(travis): don't build docs with deps, or run full benchmarks
2015-06-01 10:23:29 -07:00
Sean McArthur
58094556f5
Merge pull request #552 from winding-lines/coverage
...
test(internal): increasing test coverage of internal/cell module
2015-06-01 09:56:40 -07:00
Sean McArthur
23fe48cecc
Merge pull request #551 from clatour/expose-range-unit
...
refactor(headers): expose RangeUnit in hyper::header
2015-06-01 09:55:36 -07:00
Marius Seritan
abbc4d6f7e
test(internal): increasing test coverage of internal/cell module
2015-05-30 08:08:22 -07:00
Chandler Latour
020db5769d
refactor(headers): expose RangeUnit in hyper::header
...
Allow RangeUnit to be used from user crates.
2015-05-28 16:49:25 -06:00
Sean McArthur
1e5d7d403b
Merge pull request #549 from winding-lines/coverage
...
test(error): increasing test coverage of error module
2015-05-28 10:39:08 -07:00
Sean McArthur
0953b26060
Merge pull request #548 from winding-lines/connection-cov
...
test(connection): increasing test coverage of connection module
2015-05-28 10:36:15 -07:00
Sean McArthur
ac03b5e23b
Merge pull request #550 from infinityb/fix-buffer-underflow
...
fix(buffer): check capacity before resizing
2015-05-27 09:23:09 -07:00
Stacey Ell
b1686d1b22
fix(buffer): check capacity before resizing
...
``cmp::min(cap * 4, MAX_BUFFER_SIZE) - cap'' can underflow when
cap > MAX_BUFFER_SIZE. cap can exceed MAX_BUFFER_SIZE because
Vec::reserve aligns to powers of two.
Discovered by Matt Howard <themdhoward@gmail.com >
2015-05-27 08:48:19 -06:00
Marius Seritan
b24e1a5e6c
test(error): increasing test coverage of error module 2
2015-05-26 20:31:24 -07:00
Marius Seritan
59d8e80e6c
test(error): increasing test coverage of error module
2015-05-26 20:15:06 -07:00
Marius Seritan
c1a8e3bd02
test(connection): increasing test coverage of connection module
2015-05-25 09:31:58 -07:00
Sean McArthur
9dc85279ac
v0.5.1
2015-05-25 08:58:44 -07:00
Sean McArthur
32c92c9803
Merge pull request #546 from winding-lines/result-cov
...
test(request): increasing test coverage of request module
2015-05-25 08:53:04 -07:00
Marius Seritan
43e274cfce
test(request): increasing test coverage of request module
2015-05-24 21:07:56 -07:00
Sean McArthur
221f2c9b3c
Merge pull request #544 from winding-lines/more-tests
...
test(status): increasing test coverage of status module
2015-05-24 13:34:50 -07:00
Marius Seritan
795ee9f5e0
test(status): increasing test coverage of status module
2015-05-24 08:51:07 -07:00
Sean McArthur
69aa25fd0c
Merge pull request #545 from hyperium/issue-543
...
fix(client): don't close stream until EOF
2015-05-23 17:22:38 -07:00
Sean McArthur
a5e6174efd
fix(client): don't close stream until EOF
...
Closes #543
2015-05-23 15:11:44 -07:00
Sean McArthur
e64ce8c05e
feat(http): add get_mut method to HttpReader
2015-05-23 15:11:37 -07:00
Sean McArthur
5747792cf4
Merge pull request #534 from pyfisch/errors
...
feat(headers): return hyper::Error instead of () from header components
2015-05-20 12:19:29 -07:00
Pyfisch
5d669399b6
feat(headers): return hyper::Error instead of () from header components
...
This allows more precise errors in the future and makes it easier to use
the try!() macro in some cases.
BREAKING CHANGE: Error enum extended. Return type of header/shared/
types changed.
2015-05-20 18:24:52 +02:00
Sean McArthur
ca6cf2b294
Merge pull request #538 from hyperium/error-cov
...
test(error): increasing test coverage of error module
2015-05-18 22:28:27 -07:00
Sean McArthur
d7167e88c3
test(error): increasing test coverage of error module
2015-05-18 22:16:06 -07:00
Sean McArthur
c8086db266
Merge pull request #536 from hyperium/form-url-encoded
...
feat(header): add ContentType::form_url_encoded() constructor
2015-05-16 17:57:35 -07:00
Sean McArthur
2c99d4e906
feat(header): add ContentType::form_url_encoded() constructor
2015-05-16 15:08:42 -07:00
Sean McArthur
9912e385e1
Merge pull request #533 from winding-lines/master
...
Issue 351: default trait for client
2015-05-16 14:11:14 -07:00
Marius Seritan
be041d915a
feat(client): implement Default trait for client
...
Initial implementation of the default trait.
2015-05-15 22:35:42 -07:00
Sean McArthur
e9dcf45df3
chore(travis): add build config for 'stable' tests
2015-05-15 21:46:09 -07:00
Sean McArthur
823b5524a7
chore(travis): run script with --verbose
2015-05-15 21:46:09 -07:00
Sean McArthur
7179651d81
Merge pull request #528 from hyperium/clippy
...
Cleanup found by clippy lints
2015-05-13 22:25:47 -07:00
Sean McArthur
7d508d684f
refactor(header): remove redundant closures
2015-05-13 10:40:54 -07:00
Sean McArthur
7e3858c962
perf(all): replace &str.to_string() with .to_owned()
2015-05-12 23:01:58 -07:00
Sean McArthur
5e91ba19e4
docs(readme): remove warning about incompatible changes
...
That it's version 0.x already states that it isn't marked stable yet. And the minor version is now properly bumped when there are breaking changes.
2015-05-12 18:40:06 -07:00
Sean McArthur
6803ef3956
v0.5.0
2015-05-12 18:25:33 -07:00
Sean McArthur
72e274c52a
refactor(header): add #[inline] to new header constructors
2015-05-12 18:23:55 -07:00
Sean McArthur
0be0f264af
Merge pull request #527 from hyperium/server-keep-alive
...
feat(server): check Response headers for Connection: close in keep_alive loop
2015-05-12 18:18:41 -07:00