-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
refactor(headers): export all headers and utils directly under header #251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The only thing I would change about this design is that the parsing helpers ( |
|
I will change it like you propose. By the way. Should |
|
Hmm. Right now macros are exported at the crate level. I think it's fine to export them, since you only get them if you |
|
Added a bunch of nits. |
|
Fixed all nits. Moved parsing to its own file. (Rustoc did not like it otherwise, and we also use separate files for everything else) |
|
Waiting on deps to run this on travis. |
|
Can someone please rerun this on Travis, or do I need to change something in the code? |
|
I can't restart it on my phone, the Travis site sucks on mobile. The button I can give it a kick when I get home. On Mon, Jan 19, 2015, 1:12 PM Pyfisch notifications@github.com wrote:
|
|
Apparently, it doesn't work on desktop either. Try opening a new PR. |
|
Ya, the travis site is bugging out for me too. |
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`.
Currently headers are exported at many places. For example you can access
Transfer-Encodingheader atheader,header::commonandheader::common::transfer_encoding. Per discussion on IRC with@seanmonstar and @reem, all contents of headers will be exposed at header
directly.
This breaks much code using headers. It should use everything it needs
directly from
header::, encodings are exposed atheader::Encoding::,connection options are exposed at
header::ConnectionOption.