Module netutil

Source
Expand description

URL encoding や SHA 計算等のユーティリティ。

Structs§

HttpStatusError

Constants§

FRAGMENT 🔒
percent_encode で変換する文字セット。

Functions§

check_http_resp
HTTP status が成功 (200 台) でなければ Err に変換する。
check_http_resp_bin
HTTP status が成功 (200 台) でなければ Err に変換する。
checked_get_url
check_http_resp 付きの GET。
convert_from_json
文字列を JSON としてパースし、T 型に変換する。
hmac_sha1
HMAC SHA1 を計算する。
hmac_sha256_verify
HMAC SHA2 を計算して検証する。
html_escape
percent_encode

Type Aliases§

HmacSha1
HmacSha256