Jakob Gillich
f3e1baea9f
fix(http): is_valid_method expects &-ptr
2014-11-19 22:07:11 +01:00
Kyle Dewey
d7e8b8b117
Now using use along with enums, as per https://github.com/rust-lang/rust/pull/18973 .
2014-11-19 22:03:41 +01:00
Tim Kuehn
5605ade5dc
impl Error and FromError for HttpError; replace instances of try_io! with try!
2014-11-10 22:59:18 -08:00
Sean McArthur
b9bfdd0537
style changes
2014-11-10 20:53:37 -08:00
Sean McArthur
d51657a831
log fixes
2014-11-10 16:28:56 -08:00
Sean McArthur
bb45ac509d
some more logging
2014-11-10 16:10:52 -08:00
Sean McArthur
3b8c5cac1a
fix(client): GET and HEAD shouldn't add Transfer-Encoding
...
Also adds an EmptyWriter, used for GET and HEAD requests,
which will return an io::ShortWrite error if the user ever tries
to write to a GET or HEAD request.
Closes #77
2014-11-09 20:56:59 -08:00
Michael Hart
8a91003e88
parse_bytes is deprecated
...
TBH I'm not sure if this is the most efficient method, but it matches the conversions at 138b76b83a (diff-fcdbb6413438d3b568fe96fd242d8fc9R617)
2014-11-05 11:27:16 -05:00
Sean McArthur
0ab52c9009
add bits to deal with Upgrade requests
2014-10-27 20:36:57 -07:00
Austin Bonander
ab396c2394
Fix and optimize HTTP method parsing
...
The old parser used a manually unrolled state machine
and was broken due to upstream rust issues with match
statements.
The new parser is a read into a stack-allocated buffer
followed by a single match on the contents of that
buffer.
This significantly improves the benchmarks for method
reads by almost 30%, in addition to working around
the upstream rust issues with reordering match blocks.
2014-10-17 01:35:11 -07:00
Sean McArthur
e6329af74e
Slice was changed to AsSlice in libstd
2014-10-13 18:37:14 -07:00
Sean McArthur
2f755a5694
move rendering of headers to the Headers object
2014-10-13 14:32:48 -07:00
Stanislav Panferov
e7a2688b7e
Use const instead of static
2014-10-11 11:00:10 +04:00
Sean McArthur
50a2112caf
adjust RawHeaderLine to be (String, Vec<u8>)
2014-10-07 15:30:02 -07:00
Jonathan Reem
7d86296169
Migrated from .. to ... to respond to upstream changes.
2014-10-04 02:44:57 -07:00
Jonathan Reem
8d1c6a790e
Parse the DELETE method and transition to push from push_char.
2014-09-26 22:57:31 -04:00
Sean McArthur
26e2a0c8f4
update to rust master
2014-09-23 21:47:27 -07:00
Sean McArthur
1c472a220a
adds HttpWriters
2014-09-18 12:17:53 -07:00
Sean McArthur
42e69e1f2e
ssl for the client
2014-09-15 21:12:19 -07:00
Jonathan Reem
2aabf1b8e6
Rename rfc7230 to http to more clearly indicate its purpose.
2014-09-09 17:37:01 -07:00