Closed yoshuawuyts closed 3 years ago
I'd be willing to attempt to implement this and submit a PR. Is this what is needed?
pub use crate::cookies::Cookie
from src/lib.rspub use mime::Mime
from src/lib.rspub use trailers::Trailers;
from src/lib.rspub use headers::Headers
from src/lib.rs@brightly-salty yes indeed!
Fixed by #305.
We currently export the following headers from the crate root:
A majority of these are re-exports from our sub-modules. As our index is growing because of the addition of a variety of typed headers I would like to trim down some of these re-exports and leave them accessible only as part of the sub-modules. The types to keep would be only the types required to construct a request / response, or types that don't currently already have a dedicated submodule:
keep
Body
core typeError
core typeExtensions
no dedicated submoduleRequest
core typeResponse
core typeUrl
core type (for now; revisit after theTryFrom
patch onurl
is published)move to submodule
Cookie
has submodule, not criticalHeaders
rarely referenced directly, and when used it's in conjunction with otherheader
typesMime
(rename toMediaType
(see #251 )Trailers
has a submodule and uncommonly used