diff options
Diffstat (limited to 'ext/http')
-rw-r--r-- | ext/http/01_http.js | 2 | ||||
-rw-r--r-- | ext/http/http_next.rs | 4 | ||||
-rw-r--r-- | ext/http/network_buffered_stream.rs | 2 | ||||
-rw-r--r-- | ext/http/slab.rs | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/ext/http/01_http.js b/ext/http/01_http.js index f9a8d2cdb..55c9a77ee 100644 --- a/ext/http/01_http.js +++ b/ext/http/01_http.js @@ -293,7 +293,7 @@ function createRespondWith( if (respBody.locked) { throw new TypeError("ReadableStream is locked."); } - reader = respBody.getReader(); // Aquire JS lock. + reader = respBody.getReader(); // Acquire JS lock. try { await core.opAsync( "op_http_write_resource", diff --git a/ext/http/http_next.rs b/ext/http/http_next.rs index 92afe1456..d1dfb498c 100644 --- a/ext/http/http_next.rs +++ b/ext/http/http_next.rs @@ -97,10 +97,10 @@ static USE_WRITEV: Lazy<bool> = Lazy::new(|| { /// MUST be followed by a SETTINGS frame (Section 6.5), which MAY be empty. const HTTP2_PREFIX: &[u8] = b"PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"; -/// ALPN negotation for "h2" +/// ALPN negotiation for "h2" const TLS_ALPN_HTTP_2: &[u8] = b"h2"; -/// ALPN negotation for "http/1.1" +/// ALPN negotiation for "http/1.1" const TLS_ALPN_HTTP_11: &[u8] = b"http/1.1"; /// Name a trait for streams we can serve HTTP over. diff --git a/ext/http/network_buffered_stream.rs b/ext/http/network_buffered_stream.rs index bb128ba04..57b2b5810 100644 --- a/ext/http/network_buffered_stream.rs +++ b/ext/http/network_buffered_stream.rs @@ -126,7 +126,7 @@ pub struct NetworkBufferedStream<S: AsyncRead + Unpin> { } impl<S: AsyncRead + Unpin> NetworkBufferedStream<S> { - /// This constructor is private, because passing partically initialized data between the [`NetworkStreamPrefixCheck`] and + /// This constructor is private, because passing partially initialized data between the [`NetworkStreamPrefixCheck`] and /// this [`NetworkBufferedStream`] is challenging without the introduction of extra copies. fn new( io: S, diff --git a/ext/http/slab.rs b/ext/http/slab.rs index 93a56e9ff..9f7c1f3e9 100644 --- a/ext/http/slab.rs +++ b/ext/http/slab.rs @@ -63,7 +63,7 @@ pub fn slab_get(index: SlabId) -> SlabEntry { unsafe { std::mem::transmute(x.borrow_mut()) } }); let Some(entry) = lock.get_mut(index as usize) else { - panic!("HTTP state error: Attemped to access invalid request {} ({} in total available)", + panic!("HTTP state error: Attempted to access invalid request {} ({} in total available)", index, lock.len()) }; |