Expand description
reqwest wrapper: identity headers, the MAC signing hook, encrypted GET/POST, and error parsing.
Structsยง
- Rest
Client ๐ - An HTTP client bound to a base URL, carrying the 1Password identity headers and an optional MAC signer. Requests are signed automatically once a signer is attached.
Constantsยง
- CLIENT_
HEADER ๐ - IV_SIZE ๐
- MAC_
HEADER ๐ - OP_
USER_ ๐AGENT_ HEADER - SESSION_
ID_ ๐HEADER - USER_
AGENT_ ๐HEADER
Functionsยง
- decrypt_
response ๐ - Decrypts an opdata envelope and parses its JSON plaintext.
- deserialize ๐
- insert_
header ๐ - parse_
server_ ๐error - Maps a 1Password error body to an
OnePasswordError, orNonewhen the body is not an error.