mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-08-24 20:34:05 +02:00
crates-server/yaak-send-proxy: a stateless executor over yaak-http's HttpTransaction. It takes a rendered request, streams timeline events, the response head, body chunks and the resulting cookies back as NDJSON, and keeps nothing. Private/loopback/link-local/metadata ranges are refused after DNS on every hop (an AddressFilter on the resolver plus a per-hop URL check), with size caps, a timeout ceiling, a rate limit, host allow/deny lists and an optional token. The web host now sends through it: the wasm worker resolves and renders the request (render_http_request moved into yaak-models so it builds for wasm; re-exported from its old paths), the tab posts it, and stores what comes back where the desktop stores it. Requests needing auth plugins or template functions are refused with the reason until plugins run in the browser.
34 lines
2.3 KiB
TypeScript
34 lines
2.3 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
export const memory: WebAssembly.Memory;
|
|
export const blob_delete: (a: number, b: number) => [number, number];
|
|
export const blob_get: (a: number, b: number) => [number, number, number, number];
|
|
export const blob_put: (a: number, b: number, c: number, d: number) => [number, number];
|
|
export const boot: () => any;
|
|
export const prepare_http_send: (a: any) => any;
|
|
export const rpc: (a: number, b: number, c: any, d: number, e: number) => [number, number, number];
|
|
export const rust_sqlite_wasm_abort: () => void;
|
|
export const rust_sqlite_wasm_assert_fail: (a: number, b: number, c: number, d: number) => void;
|
|
export const rust_sqlite_wasm_calloc: (a: number, b: number) => number;
|
|
export const rust_sqlite_wasm_free: (a: number) => void;
|
|
export const rust_sqlite_wasm_getentropy: (a: number, b: number) => number;
|
|
export const rust_sqlite_wasm_localtime: (a: number) => number;
|
|
export const rust_sqlite_wasm_malloc: (a: number) => number;
|
|
export const rust_sqlite_wasm_realloc: (a: number, b: number) => number;
|
|
export const sqlite3_os_end: () => number;
|
|
export const sqlite3_os_init: () => number;
|
|
export const wasm_bindgen__convert__closures_____invoke__ha1c2fa93df0107f3: (a: number, b: number, c: any) => [number, number];
|
|
export const wasm_bindgen__convert__closures_____invoke__h999df771f7987dc3: (a: number, b: number, c: any) => [number, number];
|
|
export const wasm_bindgen__convert__closures_____invoke__h2cf3f4cce3b29948: (a: number, b: number, c: any, d: any) => void;
|
|
export const wasm_bindgen__convert__closures_____invoke__ha7903b6e296dd8f4: (a: number, b: number, c: any) => void;
|
|
export const wasm_bindgen__convert__closures_____invoke__ha1b480b83daa641f: (a: number, b: number) => void;
|
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
export const __externref_table_alloc: () => number;
|
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
export const __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
export const __externref_table_dealloc: (a: number) => void;
|
|
export const __wbindgen_start: () => void;
|