Functions§
- build_
http_ 🔒get_ request - build_
http_ 🔒get_ request_ pub - extract_
http_ body_ binary - find_
subslice 🔒 - http_
get_ binary - http_
get_ real - http_
post_ real - http_
raw_ 🔒request - http_
request_ real - 任意メソッド(GET/POST/PUT/DELETE/PATCH 等)の平文 HTTP リクエスト。 body が空かつ GET/HEAD/DELETE 等の場合は Content-Type / Content-Length を付けない。 メソッドは呼び出し側で検証済み(英大文字トークン)である前提。 CRLF はエスケープ事故を避けるためバイト値で組み立てる。
- https_
get_ real - parse_
decimal_ 🔒u16 - parse_
host_ 🔒port - parse_
http_ response - parse_
http_ response_ bytes parse_http_responseのバイト保存版。ヘッダ部分は ASCII 前提で文字列化するが、 ボディはextract_http_body_binaryの chunked 復号をそのまま使い、ロスの無い 生バイト列で返す(画像/zip 等のバイナリダウンロード向け)。 戻り値: (status_code, reason, headers, body_bytes)