Share the send settings and their timeline lines across desktop, tab and proxy

This commit is contained in:
Gregory Schier
2026-08-17 08:31:25 -07:00
parent e2ab4ee1b0
commit 8e466fc1a0
12 changed files with 142 additions and 156 deletions
+2 -7
View File
@@ -12,6 +12,7 @@ import type {
HttpRequest,
HttpResponseEventData,
HttpResponseHeader,
HttpSendSettings,
} from "@yaakapp-internal/models";
/* ------------------------------- location -------------------------------- */
@@ -38,13 +39,7 @@ export function proxySendUrl(): string {
export interface ProxyRequestBody {
/** The rendered request, in the model shape (see `wire.rs` `SendRequest.request`). */
request: HttpRequest;
settings: {
validateCertificates: boolean;
followRedirects: boolean;
timeoutMs: number;
sendCookies: boolean;
storeCookies: boolean;
};
settings: HttpSendSettings;
/** The jar's cookies to start from, or `null` for no jar at all. */
cookies: Cookie[] | null;
}
+2 -1
View File
@@ -29,6 +29,7 @@ import type {
HttpRequest,
HttpResponse,
HttpResponseEventData,
HttpSendSettings,
} from "@yaakapp-internal/models";
import type { WorkerConnection } from "./connection";
import type { ProxyFrame, ProxyRequestBody, ProxySendResponse } from "./proxy";
@@ -50,7 +51,7 @@ type ResponsePatch = Partial<HttpResponse>;
/** What `prepare_http_send` (crates/yaak-web) hands back. */
interface PreparedHttpSend {
request: HttpRequest;
settings: ProxyRequestBody["settings"];
settings: HttpSendSettings;
settingEvents: HttpResponseEventData[];
cookieJar: CookieJar | null;
}