Skip to content

Commit

Permalink
Make modules public in http
Browse files Browse the repository at this point in the history
  • Loading branch information
Sytten committed Nov 18, 2024
1 parent 151d4d7 commit 00c8e04
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
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

0 comments on commit 00c8e04

Please sign in to comment.