Skip to content
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

vis: make hpack mod public in 'unstable' feature set #824

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/frame/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl<T> Data<T> {
}

impl Data<Bytes> {
pub(crate) fn load(head: Head, mut payload: Bytes) -> Result<Self, Error> {
pub fn load(head: Head, mut payload: Bytes) -> Result<Self, Error> {
let flags = DataFlags::load(head.flag());

// The stream identifier must not be zero
Expand Down
2 changes: 1 addition & 1 deletion src/frame/headers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ impl Headers {
&mut self.header_block.pseudo
}

pub(crate) fn pseudo(&self) -> &Pseudo {
pub fn pseudo(&self) -> &Pseudo {
&self.header_block.pseudo
}

Expand Down
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,14 @@ macro_rules! ready {
#[cfg_attr(feature = "unstable", allow(missing_docs))]
mod codec;
mod error;

#[cfg(not(feature = "unstable"))]
mod hpack;

#[cfg(feature = "unstable")]
#[allow(missing_docs)]
pub mod hpack;

#[cfg(not(feature = "unstable"))]
mod proto;

Expand Down