human_requests.tools.http_utils

HTTP-helpers (cookie logic, charset, Playwright ↔ Curl adapters).

Functions

cookie_matches(→ bool)

guess_encoding(→ str)

compose_cookie_header(→ Tuple[str, ...)

Returns (header string, [cookie list, actually sent]).

collect_set_cookie_headers(→ list[str])

curl_cffi.Headers→list[str] всех Set-Cookie.

parse_set_cookie(...)

Module Contents

cookie_matches(
url_parts: SplitResult,
cookie: Cookie,
) bool[source]
guess_encoding(headers: Mapping[str, str]) str[source]

Returns (header string, [cookie list, actually sent]).

curl_cffi.Headers→list[str] всех Set-Cookie.