Commit Graph

563 Commits

Author SHA1 Message Date
Sean McArthur
b002b6c3f0 fix(log): update to new logging levels 2015-01-27 09:08:01 -08:00
Jonathan Reem
1ebbdedd13 chore(warnings): Allow direct recursion for type enforcement. 2015-01-27 09:08:01 -08:00
Jonathan Reem
0a92e0d671 Merge pull request #276 from Ryman/handle_lifetime
refactor(server): Add explicit lifetime annotations for Handler trait
2015-01-26 20:55:26 -05:00
Kevin Butler
c592b71d64 refactor(server): Add explicit lifetime annotations for Handler trait 2015-01-27 00:23:24 +00:00
Sean McArthur
e5417b834b Merge pull request #271 from pyfisch/cookie
refactor(headers): Rename `Cookies` header to `Cookie`
2015-01-26 10:35:34 -08:00
Sean McArthur
0fbbb3ca58 Merge pull request #273 from pyfisch/patch-1
chore(git): clarify CONTRIBUTING.md
2015-01-26 10:34:32 -08:00
Pyfisch
2c7b4fb449 chore(git): clarify CONTRIBUTING.md
It turned out in #271 that the current description for commit messages
introducing breaking changes is not clear enough.
2015-01-26 17:14:05 +01:00
Pyfisch
92f43cf873 refactor(headers): Rename Cookies header to Cookie
`Cookie` is the actual name of the header and since all other header structs
use the exact camel-cased version of their name using a different name here
is very inconvienient and confusing. You will encounter weird errors if you
try to use `Cookie` as the header. For this reason rename `Cookies` as
discussed on IRC with @seanmonstar and @reem and use `CookiePair` for real
cookies.

BREAKING CHANGE: Change header `Cookie` to `Cookie`
2015-01-26 17:10:36 +01:00
Jonathan Reem
e23e2feeee Merge pull request #267 from pyfisch/pragma
feat(headers): Add `Pragma` header field
2015-01-24 20:04:32 +01:00
Pyfisch
767c95d2b9 feat(headers): Add Pragma header field
Add the HTTP/1.0 `Pragma` header field used to prevent older Caches, that
do not understand the `Cache-Control` header field from caching the ressource.

Closes #237
2015-01-24 15:09:59 +01:00
Sean McArthur
fb92a260c0 Merge pull request #270 from cyderize/case-insensitive
fix(headers): make ConnectionHeader and search for websocket protocol unicase
2015-01-23 21:34:33 -08:00
Jason N
e06e7d9a7e fix(headers): make ConnectionHeader unicase
Make ConnectionHeader case-insensitive since HTTP headers are
case-insensitive
2015-01-24 16:09:20 +11:00
Jason N
65c7018046 fix(headers): make Protocol search websocket unicase
RFC6455 requires the Upgrade Protocol to search case-insensitively for
"websocket"
Other protocol values may be case-sensitive, however, so ProtocolExt is
still case-sensitive
2015-01-24 16:08:09 +11:00
Sean McArthur
fc67a1289c v0.1.7 2015-01-23 15:41:33 -08:00
Sean McArthur
6c9ed80936 Merge pull request #269 from hyperium/rustup
fix(rustup): update to newest fmt trait names and slice syntax
2015-01-23 15:38:08 -08:00
Sean McArthur
9e3c94d764 fix(rustup): update to newest fmt trait names and slice syntax 2015-01-23 14:17:19 -08:00
Sean McArthur
bb4f913ede Merge pull request #268 from hyperium/ufcs
refactor(headers): remove marker from header_name method
2015-01-22 16:43:27 -08:00
Sean McArthur
8215889eda refactor(headers): remove marker from header_name method
It is no longer required, as we can use `<H as Header>::header_name()`.

BREAKING CHANGE: Implementations of Header will need to adjust the
    header_name method. It no longer takes any arguments.
2015-01-22 15:20:38 -08:00
Sean McArthur
65ed029d3e v0.1.6 2015-01-21 23:22:27 -08:00
Sean McArthur
45069a972e Merge pull request #265 from cyderize/make-public
fix(headers): make Schemes, Basic, Protocol public
2015-01-21 23:10:22 -08:00
Jason N
e43c35c1ca fix(headers): make Schemes, Basic, Protocol public
Expose Authorization header Scheme trait and Basic authorization
Expose the Upgrade header Protocol
2015-01-22 14:26:51 +11:00
Jonathan Reem
50a23e0d5d v.0.1.5 2015-01-21 23:02:22 +01:00
Jonathan Reem
b3a5caddc9 Merge pull request #264 from ProtectedMode/master
Make CacheDirective public
2015-01-21 23:01:25 +01:00
ProtectedMode
115f56adf9 refactor(headers): make CacheDirective public 2015-01-21 21:43:38 +00:00
Jonathan Reem
519f38c9b0 v.0.1.4 2015-01-21 20:57:58 +01:00
Jonathan Reem
6812af021a Merge pull request #262 from adwhit/update-typeid-location
fix(imports): Update TypeId import location to "any" module
2015-01-21 20:37:53 +01:00
Alex Whitney
dd2534a686 fix(imports): Update TypeID import location to "any" 2015-01-21 18:54:57 +00:00
Jonathan Reem
b512e23a3e Merge pull request #260 from pyfisch/rheaders
refactor(headers): export all headers and utils directly under header
2015-01-21 16:45:03 +01:00
Jonathan Reem
bd97e659dc v.0.1.3 2015-01-21 01:23:11 +01:00
Jonathan Reem
cd1a65633f Merge pull request #261 from reem/request-deconstruct
server(feat): add a deconstruct method to Request.
2015-01-21 01:22:38 +01:00
Jonathan Reem
1014855fae feat(server): add a deconstruct method to Request. 2015-01-21 01:17:57 +01:00
Sean McArthur
401ae4ec49 test(benches): fix warnings in mock_tcp 2015-01-20 10:33:31 -08:00
Pyfisch
8d0e5bc302 refactor(headers): export all headers and utils directly under header
Currently headers are exported at many places. For example you can access
`Transfer-Encoding` header at `header`, `header::common` and
`header::common::transfer_encoding`. Per discussion on IRC with
@seanmonstar and @reem, all contents of headers will be exposed at `header`
directly. Parsing utilities will be exposed at `header::parsing`. Header
macros can now be used from other crates.

This breaks much code using headers. It should use everything it needs
directly from `header::`, encodings are exposed at `header::Encoding::`,
connection options are exposed at `header::ConnectionOption`.
2015-01-20 13:04:42 +01:00
Sean McArthur
7a5813b4b2 Merge pull request #235 from kstep/referer-header
Add `Referer` header definition
2015-01-19 15:45:18 -08:00
Jonathan Reem
2790f604b0 v.0.1.2 2015-01-19 20:25:23 +01:00
Jonathan Reem
04f8830269 Merge pull request #257 from pzol/master
Increase MAX_HEADER_FIELD_LENGTH to 4k
2015-01-19 20:23:54 +01:00
Piotr Zolnierek
54238b28e4 fix(server): Increase MAX_HEADER_FIELD_LENGTH to 4k
In order to be able to handle larger headers than 1k, for example
header containing tracking cookies etc.

references:
- http://nginx.org/en/docs/http/ngx_http_core_module.html#large_client_header_buffers
- http://stackoverflow.com/questions/686217/maximum-on-http-header-values
2015-01-19 19:55:01 +01:00
Sean McArthur
8bf551b842 Merge pull request #250 from pyfisch/headermacro2
refactor(headers): add header macros and add two example uses
2015-01-15 10:56:14 -08:00
Pyfisch
dfa5e69d7c refactor(headers): add header macros and add two example uses
Add `impl_header!` and `impl_list_header!` macros. Rewrite `Accept-Encoding`
and `Server` header implementations to use the new macros.
2015-01-15 19:26:33 +01:00
Sean McArthur
a0bf2a49f8 Merge pull request #249 from Manishearth/sslcontext
Allow more generic SSL verification (fixes #244)
2015-01-15 09:07:09 -08:00
Manish Goregaokar
bca9a53c66 feat(net): Move SSL verification to unboxed closures 2015-01-15 22:23:13 +05:30
Manish Goregaokar
af5778510d feat(net): Allow more generic SSL verification (fixes #244) 2015-01-14 19:29:48 +05:30
Sean McArthur
8f66de45cb v0.1.1 2015-01-13 12:00:54 -08:00
Sean McArthur
054fd514b8 Merge pull request #247 from hyperium/fix-header-fmt
fix(header): fix fmt_header outputs of several headers
2015-01-13 10:51:25 -08:00
Sean McArthur
aa26665367 fix(header): fix fmt_header outputs of several headers
Closes #246
2015-01-13 10:42:01 -08:00
Sean McArthur
cfebdabc1a Merge pull request #241 from retep998/master
Don't use Show to write UserAgent header
2015-01-12 09:05:55 -08:00
Sean McArthur
d80d3e017c Merge pull request #240 from cactorium/ssltry3
Added TLS/SSL support serverside
2015-01-12 09:04:23 -08:00
Peter Atashian
c8e334aaeb fix(headers): don't use Show to write UserAgent header
Signed-off-by: Peter Atashian <retep998@gmail.com>
2015-01-11 23:36:17 -05:00
Kelvin Ly
c6eef68124 feat(server,net): Add TLS/SSL support serverside
Implements the missing enum cases in Http* and adds a new
method to the default Server implementation to take advantage
of the new TLS support

Closes #1
2015-01-11 23:33:11 -05:00
Sean McArthur
6442635499 Merge pull request #242 from hyperium/contributing
chore(git): add a CONTRIBUTING.md
2015-01-11 19:58:54 -08:00