calebmer
6f6493010a
feat(header): add prefer and preference applied headers
...
Closes #747
2016-03-31 15:46:34 -04:00
Sean McArthur
c85b056cab
chore(docs): fix docs.sh token usage
2016-03-24 20:24:18 -07:00
Sean McArthur
cbf83a4d5a
Merge pull request #751 from hyperium/per-tag-docs
...
chore(docs): publish docs per version
2016-03-24 19:52:47 -07:00
Sean McArthur
905e0d2ff4
chore(docs): publish docs per version
2016-03-24 18:57:23 -07:00
Sean McArthur
2cb83b4271
Merge pull request #743 from Stebalien/repeated-header
...
Correctly handle repeated headers.
2016-03-24 17:25:34 -07:00
Steven Allen
70c6914217
fix(headers): correctly handle repeated headers
...
HeaderX: a
HeaderX: b
MUST be interpreted as
HeaderX: a, b
See: https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
Fixes #683
2016-03-24 14:19:15 -07:00
Sean McArthur
028f586432
Merge pull request #745 from dbrgn/json-comment
...
Remove "charset" from ContentType::json() docs
2016-03-15 09:04:39 -07:00
Danilo Bargen
eedd5b73ee
docs(headers): Remove charset from json() docs
...
Leftover from ec568e9a55 .
2016-03-15 12:33:32 +01:00
Sean McArthur
19c9a92595
v0.8.0
2016-03-14 09:57:05 -07:00
Sean McArthur
af78eab5e0
Merge pull request #744 from jongiddy/add-status-421-451
...
feat(status): add HTTP statuses 421 and 451
2016-03-14 09:53:00 -07:00
Jonathan Giddy
93fd5a87bd
feat(status): add HTTP statuses 421 and 451
...
The official IANA list at
http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
has two new status codes that are missing from the hyper status list.
2016-03-14 10:31:54 +00:00
Sean McArthur
146df53caf
chore(dependencies): update mime to 0.2
...
BREAKING CHANGE: mime 0.2 depends on serde 0.7, so any instances of
using older versions of serde will need to upgrade.
2016-03-09 13:27:52 -08:00
Sean McArthur
d1f9f5f694
Merge pull request #736 from debris/serde_up
...
refactor(headers): updated serde to version 0.7
2016-03-09 11:01:18 -08:00
Sean McArthur
3dcb869d9e
Merge pull request #742 from gsquire/json-charset-bug
...
JSON Charset patch
2016-03-09 09:04:55 -08:00
Garrett Squire
ec568e9a55
fix(headers): remove charset from ContentType::json() convenience method
...
since the JSON mime type does not accept a charset, this patch removes
it
closes https://github.com/hyperium/hyper/issues/737
2016-03-08 17:41:34 -08:00
Sean McArthur
45ec6fd884
Merge pull request #739 from OlegTsyba/fix_grow_zerofill
...
fix(buffer): prevent possible buffer overflow in `grow_zerofill`
2016-03-02 11:06:36 -08:00
OlegTsyba
c720295e99
fix(buffer): prevent possible buffer overflow in grow_zerofill
...
in `maybe_reserve` we have such code
```
let new = self.buf.capacity() - self.buf.len();
unsafe { grow_zerofill(&mut self.buf, new) }
```
the original behavior of `grow_zerofill` in such case cause
rewriting the memory behind the allocated vector.
2016-03-02 17:20:18 +02:00
debris
33d5da2136
refactor(headers): updated serde to version 0.7
2016-02-27 15:04:30 +01:00
Sean McArthur
63b2759e2f
docs(readme): remove warning from Server example
2016-02-22 11:14:34 -08:00
Sean McArthur
2b05fab85e
Merge pull request #732 from JohanLorenzo/update-listening-doc
...
docs(server): add a warning to Listening::close() in order to reflect #338
2016-02-19 14:07:08 -08:00
Johan Lorenzo
5c8b63028c
docs(server): add a warning to Listening::close() in order to reflect #338
2016-02-19 14:25:12 +01:00
Sean McArthur
a2ab168186
Merge pull request #731 from OlegTsyba/typo_in_set_write_timeout
...
fix(net): fix the typo in `set_write_timeout`
2016-02-17 09:51:56 -08:00
OlegTsyba
7c76fff3aa
fix(net): fix the typo in set_write_timeout
2016-02-17 19:13:40 +02:00
Sean McArthur
af944d784c
Merge pull request #729 from sfackler/client-debug
...
feat(client): Implement Debug for Client
2016-02-15 15:57:02 -08:00
Steven Fackler
8c7ef7fd93
feat(client): Implement Debug for Client
...
Protocol doesn't extend Debug so we have to leave that out of the
output unfortunately.
2016-02-15 14:43:50 -08:00
Sean McArthur
e8245aa7fb
v0.7.2
2016-01-04 15:24:31 -08:00
Sean McArthur
28b395d165
Merge pull request #718 from hyperium/715-buffer-grow-error
...
fix(buffer): fix incorrect resizing of BufReader
2016-01-04 15:22:00 -08:00
Sean McArthur
3a18e72be6
fix(buffer): fix incorrect resizing of BufReader
...
Closes #715
2016-01-04 15:00:37 -08:00
Sean McArthur
a4230eb510
Merge pull request #713 from malept/additional-extended-value-api
...
Additional ExtendedValue API
2015-12-31 12:50:48 -08:00
Mark Lee
f7d6ff67ee
docs(headers): add docs for ExtendedValue members
2015-12-31 12:12:51 -08:00
Mark Lee
da0abe8988
feat(headers): allow ExtendedValue structs to be formatted and used as struct members
2015-12-31 12:12:51 -08:00
Sean McArthur
ac8a72ab6c
Merge pull request #708 from frewsxcv/clippy
...
Address suggestions made by rust-clippy
2015-12-28 09:28:15 -08:00
Corey Farwell
4c7f6f0c1e
style(all): Address suggestions made by rust-clippy
2015-12-23 08:59:45 -08:00
Sean McArthur
7d4db58c8c
v0.7.1
2015-12-19 14:02:50 -08:00
Sean McArthur
4a05bee9ab
fix(cargo): remove * dependendies for serde and env_logger
2015-12-19 14:00:12 -08:00
Sean McArthur
69adbd1914
style(client): change instances of method::Method to Method
2015-12-19 13:59:33 -08:00
Sean McArthur
6cb35bc7cf
Merge pull request #705 from sfackler/master
...
fix(server): Flush 100-continue messages
2015-12-18 16:18:52 -08:00
Steven Fackler
92ff50f2e5
fix(server): Flush 100-continue messages
...
Closes #704
2015-12-18 16:00:49 -08:00
Sean McArthur
40d4014781
Merge pull request #703 from malept/header-parsing-with-character-encoding
...
feat(headers): add extended parameter parser to the public API
2015-12-15 10:29:21 -08:00
Mark Lee
402fb76bb2
feat(headers): add extended parameter parser to the public API
...
Move the extended parameter parser from the Content-Disposition header
implementation into the common header parsing module. This allows crates that
use Hyper to parse RFC 5987-compliant header parameter values.
Add tests based on the examples given in the RFC.
2015-12-15 09:56:09 -08:00
Sean McArthur
23f20c7576
test(bench): switch vec_push_all to extend_from_slice
...
Closes #702
2015-12-14 13:46:43 -08:00
Sean McArthur
d1f4a8b248
Merge pull request #699 from kaedroho/fix/698
...
fix(server): Removed check for GET/HEAD request when parsing body
2015-11-30 09:38:18 -08:00
Karl Hobley
1077440c4d
test(server): Add test for GET request with body
2015-11-29 18:06:44 +00:00
Karl Hobley
0b05c5903e
fix(server): Removed check for GET/HEAD request when parsing body
...
Fixes #698
2015-11-29 18:06:44 +00:00
Sean McArthur
3f1b13c72d
v0.7.0
2015-11-24 12:13:05 -08:00
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
Sean McArthur
21c4f51ad5
Merge pull request #680 from mikedilger/content-disposition
...
feat(headers): Add Content-Disposition header
2015-11-23 12:42:37 -08:00
Mike Dilger
7623ecc264
feat(headers): Add Content-Disposition header
...
fixes #561
2015-11-24 08:51:06 +13:00