import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { HttpFavicon } from "./httpfavicon.js"; import { HttpRedirectChainLink } from "./httpredirectchainlink.js"; import { HttpRepeatedHeaders } from "./httprepeatedheaders.js"; import { NetworkLog } from "./networklog.js"; export type Http = { /** * The body of the HTTP response. For hosts without a name, the first 64KB are available. For hosts with a name, only 6KB are available. */ body?: string | undefined; bodyHashSha1?: string | undefined; bodyHashSha256?: string | undefined; bodyHashTlsh?: string | undefined; /** * The length, in bytes, of services.http.response.body; at most, 64KB. */ bodySize?: number | undefined; favicons?: Array | null | undefined; /** * The key-value header pairs included in the response. */ headers?: { [k: string]: HttpRepeatedHeaders; } | undefined; /** * A list of the and <meta> tags from services.http.response.body. */ htmlTags?: Array<string> | null | undefined; /** * The title of the HTML page: the inner contents of the <title> tag in the response body, if present. */ htmlTitle?: string | undefined; networkLog?: NetworkLog | undefined; /** * The protocol field of the response, which includes the claimed HTTP version number. */ protocol?: string | undefined; /** * If the scan redirects, the list of followup scans performed */ redirectChain?: Array<HttpRedirectChainLink> | null | undefined; /** * A 3-digit integer result code indicating the result of the services.http.request. */ statusCode?: number | undefined; /** * A human-readable phrase describing the status code. */ statusReason?: string | undefined; supportedVersions?: Array<string> | null | undefined; /** * The full path used to make the request, which includes the scheme, host, port (when non-standard), and endpoint. */ uri?: string | undefined; }; /** @internal */ export declare const Http$inboundSchema: z.ZodType<Http, z.ZodTypeDef, unknown>; export declare function httpFromJSON(jsonString: string): SafeParseResult<Http, SDKValidationError>; //# sourceMappingURL=http.d.ts.map