Commit Graph

625 Commits

Author SHA1 Message Date
Sean McArthur
4f09b002ff feat(log): clean up logging 2015-04-15 21:08:52 -07:00
Sean McArthur
1ba04f9573 Merge pull request #455 from hyperium/issue-437
fix(server): handle keep-alive closing
2015-04-15 20:17:32 -07:00
Sean McArthur
d9187713b2 fix(server): handle keep-alive closing
Closes #437
2015-04-15 20:12:26 -07:00
Jonathan Reem
dac2f4db8a Merge pull request #458 from hyperium/server-spawn
fix(server): join on thread when Listening drops
2015-04-15 16:53:38 -07:00
Sean McArthur
68d4d63c2a fix(server): join on thread when Listening drops
Closes #447
2015-04-15 16:44:48 -07:00
Sean McArthur
f246c6a4a8 chore(travis): use local ghp-import 2015-04-15 15:56:35 -07:00
Sean McArthur
4ed2ef5845 chore(travis): pip install --user ghp-import 2015-04-15 15:31:10 -07:00
Sean McArthur
7875bc9194 chore(travis): include nightly feature when building docs 2015-04-15 13:40:07 -07:00
Sean McArthur
cc7d9fa8c4 chore(travis): remove sudo from publish docs 2015-04-15 13:25:52 -07:00
Sean McArthur
aaa10ade17 Merge pull request #457 from reem/scoped-to-spawn
fix(server): Use thread::spawn instead of thread::scoped.
2015-04-15 13:18:13 -07:00
Jonathan Reem
e864956734 fix(server): Use thread::spawn instead of thread::scoped. 2015-04-15 13:15:05 -07:00
Sean McArthur
eab8fcd081 Merge pull request #456 from hyperium/beta-feature
test(beta): enable testing on beta rustc
2015-04-15 12:19:32 -07:00
Sean McArthur
55b37f0148 test(beta): enable testing on beta rustc 2015-04-15 11:59:23 -07:00
Sean McArthur
f223312e3e Merge pull request #445 from brandonson/master
feat(net) make HttpStreams implement Debug
2015-04-09 16:45:21 -07:00
Brandon Sanderson
7b7f9c257d feat(net): make HttpStream implement Debug 2015-04-09 16:13:29 -07:00
Sean McArthur
7262e91345 Merge pull request #444 from brandonson/master
feat(http): Implement Debug for HttpReader/Writer.
2015-04-08 18:30:55 -07:00
Brandon Sanderson
2f606c88bd feat(http): Implement Debug for HttpReader/Writer.
Also derives it for Responses, since that's easy now.
2015-04-08 18:03:08 -07:00
Jonathan Reem
ad797b0200 v0.3.11 2015-04-08 17:22:35 -07:00
Jonathan Reem
0ccf8e4c27 Merge pull request #443 from huonw/hyphen
The Content-Encoding header needs a hyphen.
2015-04-08 17:21:30 -07:00
Huon Wilson
ca2815effd fix(headers): Content-Encoding needs a hyphen. 2015-04-09 10:15:42 +10:00
Sean McArthur
564288e5c6 Merge pull request #428 from hyperium/client-box
feat(client): remove generic parameter for Connector
2015-04-07 18:26:27 -07:00
Sean McArthur
499a2c8610 Merge pull request #440 from pyfisch/refactorheaders5
refactor(headers): Use header!() for CORS headers.
2015-04-07 12:51:19 -07:00
Sean McArthur
56d72b4351 Merge pull request #439 from pyfisch/refactorheaders4
refactor(headers): Use header!() macro for Upgrade header field
2015-04-07 12:02:39 -07:00
Sean McArthur
dee3edd536 Merge pull request #438 from pyfisch/removecomment
style(header): Remove commented out code in headers.
2015-04-07 12:01:45 -07:00
Pyfisch
94f38950dd refactor(headers): Use header!() for CORS headers.
This is the last bunch of headers that should use the new macro. Moved them out of
their own folder so that the macro works. Changed them, so that they are more in
line with the other headers.

BREAKING CHANGE: `AccessControlAllowHeaders` and `AccessControlRequestHeaders` values
are case insensitive now. `AccessControlAllowOrigin` variants are now `Any` and
`Value` to match the other headers.
2015-04-07 11:54:01 +02:00
Pyfisch
831daafb8c style(headers): Remove commented out code in headers. 2015-04-07 11:08:42 +02:00
Pyfisch
f3508d9204 refactor(headers): Use header!() macro for Upgrade header field 2015-04-07 11:07:26 +02:00
Sean McArthur
ed1ccc6ad3 Merge pull request #420 from pyfisch/refactorheaders2
refactor(headers): Use header!() macro for `ETag` header
2015-04-06 13:39:22 -07:00
Sean McArthur
913dc9e804 Merge pull request #421 from pyfisch/refactorheaders3
refactor(headers): Use header!() macro for 3 headers with a "*" value
2015-04-06 13:38:39 -07:00
Pyfisch
38d297b16e refactor(headers): Use header!() macro for 3 headers with a "*" value
`If-Match`, `If-None-Match` and `Vary` headers are either a "*" value meaning that the header
matches every possible item or a list of items, one of them must be matched to fulfil the condition.

BREAKING CHANGE: `If-Match`, `If-None-Match` and `Vary` item variant name changed to `Items`
2015-04-06 20:41:41 +02:00
Pyfisch
4434ea6a7d refactor(headers): Use header!() macro for ETag header
Change `Etag` (only the `E` is capitalized) to `ETag` as it is written
in the relevant RFC.

BREAKING CHANGE: `Etag` header field is now `ETag` header field
2015-04-06 20:41:00 +02:00
Sean McArthur
8f1c82901e v0.3.10 2015-04-06 11:14:31 -07:00
Sean McArthur
2098809d1b Merge pull request #435 from markuskobler/master
Updates for rust-openssl 0.6.0
2015-04-06 11:11:00 -07:00
Markus Kobler
660a362b68 chore(net): Upgrading to latest rust openssl 0.6.0 2015-04-06 16:18:52 +01:00
Sean McArthur
7d9bab784d Merge pull request #430 from mfeckie/mfeckie-patch-1
fix(README): Update to compile example against Rust beta
2015-04-04 10:08:55 -07:00
Martin Feckie
341f19d326 fix(README): Update to compile example against Rust beta
Remove unused import
res doesn't need to be mutable in parameter list
Change .listen() to string format
2015-04-04 22:58:26 +08:00
Sean McArthur
139a51f1c3 feat(client): remove generic parameter for Connector
Closes #379

BREAKING CHANGE: For people using the default HttpConnector and Client,
    everything should continue to just work. If the Client has been
    used with a generic parameter, it should be removed.

    However, there were some breaking changes to the internals of
    NetworkConnectors. Specifically, they no longer return a
    NetworkStream, but instead a Into<Box<NetworkStream + Send>>. All
    implementations of NetworkStream should continue to just work,
    however.

    Possible breakages could come from the stricter usage of Send
    throughout the Client API.
2015-04-03 18:36:13 -07:00
Sean McArthur
4fecd64c0f v0.3.9 2015-04-03 09:57:53 -07:00
Sean McArthur
cc8400ddcc Merge pull request #427 from reem/cowstr-hack
fix(headers): Add CowStr as a temporary hack to build on beta.
2015-04-03 08:32:05 -07:00
Jonathan Reem
8e0655637e fix(headers): Add CowStr as a temporary hack to build on beta.
We can revert this PR when rust-lang/rust#23995 lands, but it won't
land until after beta is cut.
2015-04-02 22:33:55 -07:00
Jonathan Reem
48bbf4a3df Merge pull request #426 from hyperium/auth
refactor(auth): adjust Scheme::scheme function to not take a marker Opti...
2015-04-02 17:55:42 -07:00
Sean McArthur
0a1916dc64 refactor(auth): adjust Scheme::scheme function to not take a marker Option 2015-04-02 17:38:40 -07:00
Sean McArthur
8f61dd41a4 Merge pull request #425 from hyperium/unfeat-core
chore(stability): remove core feature gate
2015-04-02 17:32:19 -07:00
Sean McArthur
5c2de29a81 chore(stability): remove core feature gate 2015-04-02 17:32:04 -07:00
Sean McArthur
b7d5920eb4 Merge pull request #424 from reem/stable-downcasting
chore(all): Move downcasting to a stable implementation.
2015-04-02 13:45:21 -07:00
Jonathan Reem
320d10d50d chore(all): Move downcasting to a stable implementation. 2015-04-02 13:30:41 -07:00
Sean McArthur
3dc8e7d6ff Merge pull request #416 from hyperium/into-cow
chore(stability): remove into_cow feature gate
2015-04-02 13:20:56 -07:00
Sean McArthur
ccd4814e69 chore(stability): remove into_cow feature gate 2015-04-02 13:01:49 -07:00
Sean McArthur
1b28515b6e v0.3.8 2015-04-02 12:57:45 -07:00
Sean McArthur
d3f042bd53 Merge pull request #423 from hyperium/rustup
fix(rustup): update to rust beta
2015-04-02 12:57:07 -07:00