mirror of
https://github.com/uNetworking/uWebSockets.js.git
synced 2026-04-16 23:00:27 -04:00
[GitHub Actions] Updated macos-15 binaries
This commit is contained in:
14
index.d.ts
vendored
14
index.d.ts
vendored
@@ -47,11 +47,10 @@ export interface AppDescriptor {
|
||||
* This because we expect UTF-8, which is packed in 8-byte chars. JavaScript strings are UTF-16 internally meaning extra copies and reinterpretation are required.
|
||||
*
|
||||
* That's why all events pass data by ArrayBuffer and not JavaScript strings, as they allow zero-copy data passing.
|
||||
*
|
||||
* You can always do Buffer.from(arrayBuffer).toString(), but keeping things binary and as ArrayBuffer is preferred.
|
||||
*
|
||||
* The ArrayBufferView type includes Node.js Buffer, DataView, and TypedArray (Uint8Array, Uint16Array, ...).
|
||||
*/
|
||||
export type RecognizedString = string | ArrayBuffer | SharedArrayBuffer | ArrayBufferView;
|
||||
export type RecognizedString = string | ArrayBuffer | Uint8Array | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array | Float32Array | Float64Array;
|
||||
|
||||
/** A WebSocket connection that is valid from open to close event.
|
||||
* Read more about this in the user manual.
|
||||
@@ -195,18 +194,17 @@ export interface HttpResponse {
|
||||
/** Resume HTTP request body streaming (unthrottle). */
|
||||
resume() : void;
|
||||
|
||||
/** collectBody is a helper function making optimal use of the new onDataV2.
|
||||
* It allows efficient and easy collection of smallish HTTP request body data into RAM.
|
||||
* It accumulates all data chunks and calls handler with the complete body as an ArrayBuffer once all data has arrived.
|
||||
/** Accumulates all data chunks and calls handler with the complete body as an ArrayBuffer once all data has arrived.
|
||||
* If the total body size exceeds maxSize bytes, handler is called with null instead. */
|
||||
collectBody(maxSize: number, handler: (fullBody: ArrayBuffer | null) => void) : HttpResponse;
|
||||
|
||||
/** Handler for reading HTTP request body data. V2.
|
||||
* Must be attached before performing any asynchronous operation, otherwise data may be lost.
|
||||
* You MUST copy the data of chunk if maxRemainingBodyLength is not 0n. We Neuter ArrayBuffers on return, making them zero length.
|
||||
* You MUST copy the data of chunk if maxRemainingBodyLength is not 0. We Neuter ArrayBuffers on return, making them zero length.
|
||||
*
|
||||
* maxRemainingBodyLength is the known maximum of the remaining body length. Can be used to preallocate a receive buffer.
|
||||
*/
|
||||
onDataV2(handler: (chunk: ArrayBuffer, maxRemainingBodyLength: bigint) => void) : HttpResponse;
|
||||
onDataV2(handler: (chunk: ArrayBuffer | null, maxRemainingBodyLength: bigint) => void) : HttpResponse;
|
||||
|
||||
/** Returns the remote IP address in binary format (4 or 16 bytes). */
|
||||
getRemoteAddress() : ArrayBuffer;
|
||||
|
||||
@@ -1 +1 @@
|
||||
2aff4e4bf4fe6972b0b593de0bf9bc9e2d5e17ba
|
||||
1c03fa0b7911bcf1aedeef92df9a5e1e17d30089
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user