mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-08-23 20:04:05 +02:00
Share the send settings and their timeline lines across desktop, tab and proxy
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user