@opra/client
Version:
Opra Client package
14 lines (13 loc) • 490 B
TypeScript
import { PassThrough } from 'node:stream';
export declare function urlPath(strings: string[], ...values: any[]): string;
/**
* Serializes an HTTP request context into raw HTTP/1.1 bytes.
* Returns a Buffer for synchronous body types (null, string, Buffer, plain object)
* or a PassThrough stream for readable/stream bodies.
*/
export declare function serializeHttpRequest(ctx: {
method: string;
url: URL | string;
headers: Headers;
body?: any;
}): Buffer | PassThrough;