Commit Graph

864 Commits

Author SHA1 Message Date
Sean McArthur
03bbd23a84 Merge pull request #579 from pyfisch/language-tags
feat(langtags): use true language tags in headers
2015-06-23 17:04:42 -07:00
lame-nickname
f7504c3a9c refactor(headers): improve Range header adherence to HTTP spec 2015-06-23 20:59:34 +02:00
Pyfisch
99ff7e6257 feat(langtags): use true language tags in headers
Make hyper dependant on rust-language-tags providing complete parsing
and formatting of language tags. Remove builtin solution for simple
tags.

BREAKING CHANGE: AcceptLanguage and ContentLanguage use LanguageTag now,
Language removed from Hyper.
2015-06-23 20:15:47 +02:00
Sean McArthur
c3935d657e Merge pull request #577 from hyperium/ssl
feat(ssl): redesign SSL usage
2015-06-20 18:16:02 -07:00
Sean McArthur
53bba6eb7f feat(ssl): redesign SSL usage
BREAKING CHANGE: Server::https was changed to allow any implementation
  of Ssl. Server in general was also changed. HttpConnector no longer
  uses SSL; using HttpsConnector instead.
2015-06-20 14:58:58 -07:00
Sean McArthur
e689f20376 fix(client): check for drained stream in Response::drop 2015-06-17 13:17:56 -07:00
Sean McArthur
306f39c731 chore(logging): add some trace! logging to headers 2015-06-17 11:37:26 -07:00
Sean McArthur
7d2e5c0ef8 style(client): use status.is_redirection() 2015-06-17 11:36:54 -07:00
Sean McArthur
3f1fc19d5a Merge pull request #576 from mlalic/fix-html-root-url
docs(hyper): fix html root url
2015-06-17 08:54:44 -07:00
Marko Lalic
aee7c991e6 docs(hyper): fix html root url
The HTML root URL is not supposed to point at the index resource, but
represent the path that can be used to construct the full URL of the
crate's components.
2015-06-17 17:42:57 +02:00
Sean McArthur
e5dfb8233f Merge pull request #572 from giftcards/master
feat(headers): add bearer token support
2015-06-16 22:51:13 -07:00
Joseph Deray
edf6ac2074 feat(headers): add bearer token support
this allows servers/clients using bearer tokens
 to work out of the box without having to implement
  their own bearer scheme. while this would be pretty
   easy seems like a more general thing that is useful
    for a lib like this
2015-06-17 00:57:04 -04:00
Sean McArthur
41823ca183 Merge pull request #560 from lame-nickname/master
feat(headers): add `Range` header
2015-06-16 10:43:48 -07:00
lame-nickname
05c3199846 feat(headers): add Range header 2015-06-16 18:28:48 +02:00
Sean McArthur
febf3031c5 Merge pull request #567 from clatour/header-docs
docs(headers): add examples
2015-06-15 10:15:17 -07:00
Chandler Latour
c940e84a78 docs(headers): add header examples 2015-06-14 21:32:33 -06:00
Sean McArthur
c37d85728f Merge pull request #565 from hyperium/dox-server
docs(server): greatly expand how to use a Server
2015-06-14 08:41:44 -07:00
Sean McArthur
ae5c7276c0 docs(server): greatly expand how to use a Server 2015-06-13 17:02:35 -07:00
Sean McArthur
5a9c41a2a1 Merge pull request #566 from Ryman/patch-1
docs(header): fix typos and minor rewording
2015-06-13 11:10:52 -07:00
Ryman
8275f3b9e3 docs(header): fix typos and minor rewording 2015-06-13 16:53:26 +01:00
Sean McArthur
6d72289394 Merge pull request #564 from hyperium/doxup
docs(header): greatly expand on implementing custom headers
2015-06-13 08:34:50 -07:00
Sean McArthur
a8e29efdec docs(header): greatly expand on implementing custom headers 2015-06-12 15:20:58 -07:00
Sean McArthur
fe859cae61 Merge pull request #563 from hyperium/assert-sync
feat(client): impl Sync for Client
2015-06-12 11:59:46 -07:00
Sean McArthur
7452dfab69 docs(CONTRIBUTING): add link to easy issues 2015-06-12 11:29:27 -07:00
Sean McArthur
64e47b4bbd feat(client): impl Sync for Client
Connector::connect already used &self, and so would require
synchronization to be handled per connector anyway. Adding Sync to the
Client allows users to setup config for a Client once, such as using a
single connection Pool, and then making requests across multiple
threads.

Closes #254

BREAKING CHANGE: Connectors and Protocols passed to the `Client` must
  now also have a `Sync` bounds, but this shouldn't break default usage.
2015-06-12 11:19:54 -07:00
Sean McArthur
d7fa961a79 Merge pull request #562 from pyfisch/parseerror
refactor(headers): errors for parse_header
2015-06-10 16:01:21 -07:00
Pyfisch
195a89fa91 refactor(headers): errors for parse_header
Header::parse_header() returns now a hyper Result instead of an option
this will enable more precise Error messages in the future, currently
most failures are reported as ::Error::Header.

BREAKING CHANGE: parse_header returns Result instead of Option, related
code did also change
2015-06-10 22:22:56 +02:00
Sean McArthur
b2eb4e5171 Merge pull request #559 from hyperium/unsudo
chore(travis): remove sudo need from kcov
2015-06-08 19:22:37 -07:00
Sean McArthur
07c6bc7731 chore(travis): remove sudo need from kcov 2015-06-08 19:14:10 -07:00
Sean McArthur
763746153e Merge pull request #557 from hyperium/http-versions
refactor(http): move h1 and h2 into http module
2015-06-04 12:04:49 -07:00
Sean McArthur
e2611b4417 Merge pull request #556 from ssokolow/patch-1
Add a license badge to README.md
2015-06-03 11:47:31 -07:00
Sean McArthur
246c64b9e3 Merge pull request #555 from hyperium/nonexhaustive-error
feat(error): add private __Nonexhaustive variant to Error
2015-06-03 11:46:41 -07:00
Stephan Sokolow
19d2530c3c docs(readme): add a license badge to README.md
1. Add a shields.io license badge to allow quick, effective identification
   of the license without requiring the user to scroll to the bottom of the
   page.
2. Remove the single-word license section at the bottom of the page as it
   is now superfluous and looks unpolished.
3. Move the crates.io badge beyond the license badge so that its orange
   colour won't knock the viewer's brain off fast-path evaluation when
   using the badge row as a status dashboard (as explained in #525).

Fixes #525
2015-06-03 00:03:53 -04:00
Sean McArthur
71ac65da5b refactor(http): move h1 and h2 into http module 2015-06-02 12:24:56 -07:00
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