Skip to content

Conversation

@pyfisch
Copy link
Contributor

@pyfisch pyfisch commented Jan 20, 2015

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-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`.
@pyfisch
Copy link
Contributor Author

pyfisch commented Jan 21, 2015

Can you please merge it? It has no new changes except a very few updates for master compared to #251.

reem added a commit that referenced this pull request Jan 21, 2015
refactor(headers): export all headers and utils directly under header
@reem reem merged commit b512e23 into hyperium:master Jan 21, 2015
@reem
Copy link
Contributor

reem commented Jan 21, 2015

@pyfisch Thanks for pushing this though, it's a very worthwhile change.

@rsolomo
Copy link

rsolomo commented Jan 21, 2015

@pyfisch and @reem, I think the Basic scheme for Authorization headers is no longer publicly available after this change, unless I'm missing something?

@reem
Copy link
Contributor

reem commented Jan 21, 2015

It looks like we accidentally dropped a few things from public exports - @pyfisch think you could do a pass to make sure we get everything and PR the fixes?

@pyfisch
Copy link
Contributor Author

pyfisch commented Jan 22, 2015

I will look if there are things I have forgotten.

@pyfisch pyfisch mentioned this pull request Jan 22, 2015
23 tasks
@pyfisch pyfisch deleted the rheaders branch January 24, 2015 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants