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

Make modules public in http #655

Open
wants to merge 1 commit into
base: main
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 modules/llrt_http/src/blob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ fn bytes_from_parts<'js>(
Ok(data)
}

pub(crate) fn init<'js>(ctx: &Ctx<'js>, globals: &Object<'js>) -> Result<()> {
pub fn init<'js>(ctx: &Ctx<'js>, globals: &Object<'js>) -> Result<()> {
if let Some(constructor) = Class::<Blob>::create_constructor(ctx)? {
constructor.prop(
PredefinedAtom::SymbolHasInstance,
Expand Down
2 changes: 1 addition & 1 deletion modules/llrt_http/src/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use super::{blob::Blob, headers::Headers, response::Response, security::ensure_u

const MAX_REDIRECT_COUNT: u32 = 20;

pub(crate) fn init<C>(client: Client<C, BoxBody<Bytes, Infallible>>, globals: &Object) -> Result<()>
pub fn init<C>(client: Client<C, BoxBody<Bytes, Infallible>>, globals: &Object) -> Result<()>
where
C: Clone + Send + Sync + Connect + 'static,
{
Expand Down
12 changes: 6 additions & 6 deletions modules/llrt_http/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ use webpki_roots::TLS_SERVER_ROOTS;
pub use self::security::{get_allow_list, get_deny_list, set_allow_list, set_deny_list};
use self::{file::File, headers::Headers, request::Request, response::Response};

mod blob;
pub mod blob;
mod body;
mod fetch;
mod file;
mod headers;
pub mod fetch;
pub mod file;
pub mod headers;
mod incoming;
mod request;
mod response;
pub mod request;
pub mod response;
mod security;

const DEFAULT_CONNECTION_POOL_IDLE_TIMEOUT: Duration = Duration::from_secs(15);
Expand Down
Loading