Sean McArthur
6c31ea84e1
Merge pull request #401 from hyperium/packets
...
fix(http): read more before triggering TooLargeError
2015-03-28 11:37:43 -07:00
Sean McArthur
48700aa705
Merge pull request #402 from pyfisch/chorecaching
...
chore(travis): Enable caching of ./target folder.
2015-03-27 14:12:01 -07:00
Sean McArthur
e158870e28
Merge pull request #403 from hyperium/stabilize
...
Remove box_syntax and collections feature gates
2015-03-27 14:11:38 -07:00
Jonathan Reem
dbee6af8df
refactor(hyper): Remove the box_syntax feature gate.
2015-03-27 13:37:30 -07:00
Sean McArthur
a62323cafe
refactor(hyper): remove need for collections feature
2015-03-27 11:50:14 -07:00
Pyfisch
9747d86324
chore(travis): Enable caching of ./target folder.
...
Travis supports the caching of folders between builds.
By storing the ./target folder we can cache hyper's dependencies.
2015-03-27 19:12:33 +01:00
Sean McArthur
cb59f609c6
fix(http): read more before triggering TooLargeError
...
This includes a custom BufReader, since the one in libstd doesn't allow
reading additional data into the buffer without consuming it. This is
required because some connections may send shorter packets, and so we
need to perform multiple reads. After each read, the contents of the
buffer are passed to httparse to see if have a valid message. If so, the
proper amount of bytes are consumed. The additional bytes are left in
the buffer since they are the beginning of the body.
The buffer in this BufReader also grows in size, compared to the libstd
which is sized once. This is because we start with a smaller buffer,
since the majority of messages will be able to include their head in a
packet or 2. Therefore, it's a wasteful performance hit to allocate the
maximum size for every message. However, some headers can be quite big,
and to allow for many of them to be set, we include a maximum size. Once
we've hit the maximum buffer size, and still haven't determined the end
of the headers, a HttpTooLargeError will be returned.
Closes #389
2015-03-27 10:52:07 -07:00
Sean McArthur
b04f6d8e7a
v0.3.4
2015-03-26 14:04:25 -07:00
Sean McArthur
2a964a6a3d
Merge pull request #400 from Ryman/master
...
fix(rustup): static bounds required on Type definition, trivial_casts
2015-03-26 10:45:03 -07:00
Kevin Butler
eee7a85d3c
fix(rustup): static bounds required on Type definition, trivial_casts
2015-03-26 17:02:20 +00:00
Sean McArthur
a10e7ded93
v0.3.3
2015-03-25 13:03:49 -07:00
Sean McArthur
b5f3bd05e5
Merge pull request #399 from fhartwig/rustup
...
fix(rustup): rustc 1.0.0-nightly (123a754cb 2015-03-24)
2015-03-25 12:57:57 -07:00
Florian Hartwig
3e456f00f9
fix(rustup): rustc 1.0.0-nightly (123a754cb 2015-03-24)
...
* fix `extern crate` declaration for rustc-serialize
* enable `into_cow` feature
* replace as_slice() calls by as_ref and enable `convert` feature
* use `core` feature in doc tests
2015-03-25 20:55:42 +01:00
Sean McArthur
e63a2dfc61
Merge pull request #398 from mattnenterprise/content-encoding-header
...
Implement Content-Encoding Header
2015-03-24 20:18:38 -07:00
Matt McCoy
2983e8dea2
feat(headers): Implementing content-encoding header
...
Closes #391
2015-03-24 21:57:52 -04:00
Jonathan Reem
a7e21219b2
Merge pull request #394 from zzmp/patch-3
...
docs(hyper): Tag docs for reexports
2015-03-24 00:34:47 -07:00
Zach Pomerantz
376eaddb88
docs(hyper): Tag docs for reexports
2015-03-24 00:28:52 -07:00
Jonathan Reem
89191cc481
Merge pull request #390 from hyperium/strptime
...
Add tests for header::parsing::tm_from_str and run benchmarks on travis.
2015-03-23 12:50:31 -07:00
Sean McArthur
26478644b4
test(benches): remove unused server bench
2015-03-23 11:14:11 -07:00
Sean McArthur
8e71f10b54
chore(travis): run benchmarks on travis
2015-03-23 10:41:33 -07:00
Sean McArthur
996538e105
test(header): add tests for tm_from_str
2015-03-23 10:40:51 -07:00
Sean McArthur
5d93a3bd91
Merge tag 'v0.3.2'
2015-03-21 17:12:29 -07:00
Sean McArthur
025c410f78
Merge pull request #386 from pyfisch/sudofalse
...
chore(build): Enable building hyper in docker containers on travis
2015-03-21 13:12:59 -07:00
Pyfisch
8e3ad9e676
chore(build): Enable building hyper in docker containers on travis
...
By stating that hyper does not need sudo to build it can be compiled in
a container:
http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
2015-03-21 20:57:15 +01:00
Sean McArthur
4cb6d1ac16
Merge pull request #384 from Byron/master
...
fix(rustup): 1.0.0-nightly (e2fa53e59 2015-03-20)
2015-03-21 11:35:02 -07:00
Sebastian Thiel
f547080df5
fix(rustup): 1.0.0-nightly (e2fa53e59 2015-03-20)
...
* replace `char_at()` calls with itertor, as suggested by compiler
* fixed comparison in test
2015-03-21 17:02:13 +01:00
Sean McArthur
db3e8874fd
v0.3.2
2015-03-20 17:33:18 -07:00
Sean McArthur
5d7be77e4a
feat(server): use SocketAddrs instead of Ipv4Addrs
2015-03-20 17:32:51 -07:00
Sean McArthur
c205144eff
Merge pull request #383 from Byron/master
...
fix(rustup): rustc 1.0.0-nightly (ea8b82e90)
2015-03-20 16:31:27 -07:00
Sebastian Thiel
104d49036f
fix(benches): removed unused features
...
* 'io' and 'net'
2015-03-20 10:43:18 +01:00
Sebastian Thiel
8181de253a
fix(rustup): rustc 1.0.0-nightly (ea8b82e90)
...
This commit fixes `cargo build` and `cargo test`.
Method lookup on traits seems to have changed to force
`impl TraitName` expressions to be more specific. That means that
`method` will not be found anymore on an object of type `&Trait+Send`,
unless you provide an `impl Trait+Send`.
Now `NetworkStream` and `HeaderFormat` trait implementations
are done against `* + Send`, which helps the compiler to find the
respective `downcast*` method implementations once again.
2015-03-20 10:28:35 +01:00
Adrian Heine
1f0bc951c9
fix(rustup): adapt to current rustc
...
Closes #381 .
2015-03-19 09:44:40 +01:00
Sean McArthur
7469e62d1e
v0.3.1
2015-03-18 11:05:08 -07:00
Sean McArthur
8c2bae7fc1
Merge pull request #377 from hyperium/check-continue
...
feat(server): add Expect 100-continue support
2015-03-16 18:13:00 -07:00
Sean McArthur
0b7169432b
feat(server): add Expect 100-continue support
...
Adds a new method to `Handler`, with a default implementation of always
responding with a `100 Continue` when sent an expectation.
Closes #369
2015-03-16 15:59:44 -07:00
Sean McArthur
fe8c6d9914
Merge pull request #376 from hyperium/rustup
...
fix(rustup): update to latest rustc
2015-03-16 14:37:39 -07:00
Sean McArthur
4fd8a6a9dc
fix(rustup): update to latest rustc
2015-03-16 12:01:38 -07:00
Sean McArthur
db8654a370
Merge pull request #375 from fuchsnj/master
...
fix(headers): Fix overflow with empty cookies
2015-03-15 20:56:01 -07:00
Nathan Fuchs
99baaa1015
fix(headers): Fix overflow with empty cookies
2015-03-15 23:51:08 -04:00
Jonathan Reem
932baac171
Merge pull request #371 from hyperium/cleanup
...
refactor(client): remove explicit Send implementations from Request/Resp...
2015-03-13 22:47:46 -07:00
Sean McArthur
d28bae3c91
refactor(client): remove explicit Send implementations from Request/Response
2015-03-13 19:54:34 -07:00
Sean McArthur
a2c6c4a25e
Merge pull request #370 from hyperium/httparse
...
perf(http): changes http parsing to use httparse crate
2015-03-13 17:58:41 -07:00
Sean McArthur
b87bb20f0c
perf(http): changes http parsing to use httparse crate
...
httparse is a http1 stateless push parser. This not only speeds up
parsing right now with sync io, but will also be useful for when we get
async io, since it's push based instead of pull.
BREAKING CHANGE: Several public functions and types in the `http` module
have been removed. They have been replaced with 2 methods that handle
all of the http1 parsing.
2015-03-13 16:56:13 -07:00
Sean McArthur
79200ed496
Merge pull request #360 from ctjhoa/master
...
docs(client): fix #357
2015-03-04 10:50:24 -08:00
Camille TJHOA
602c1e27fd
docs(client): fix #357
2015-03-04 13:48:09 +01:00
Sean McArthur
d99a2006bd
Merge pull request #359 from SBSTP/fix-charset-bug
...
fix(header): Fix charset parsing bug.
2015-03-03 23:38:34 -08:00
Simon Bernier St-Pierre
5a6e176f50
fix(header): Fix charset parsing bug.
2015-03-04 00:22:46 -05:00
Sean McArthur
003b6551cf
v0.3.0
2015-03-03 21:09:45 -08:00
Sean McArthur
a9887c87f2
test(examples): fix warnings in examples
2015-03-03 21:05:52 -08:00
Sean McArthur
fdc78f8f89
Merge pull request #358 from hyperium/reparsing
...
feat(headers): adds re-parsing ability when getting typed headers
2015-03-03 20:47:47 -08:00