Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Data PreparedRequest

http/client::PreparedRequest


Traits

∈ Deserialize
∈ Display
∈ Serialize
∈ ToString


HTTP request prepared by someone else, such as presigned by object storage: a method, a URL and headers, made as given.

Prepared requests hold no credential of the program, but their URL often is one, holding a signature: Display and ToString give only the method and the host, and treatments making them never give the URL in errors.

They are read from JSON as {"method": "PUT", "url": "https://…", "headers": {…}}, with json/value::fromJson<PreparedRequest>, headers being optional, or made with |prepared_request.