Create a request from an encoded path, method, and body; string bodies are encoded as UTF-8.
urimethodbodyCopy request body bytes; encode strings as UTF-8.
bodySet a request header with a case-insensitive field name; invalid header names or values throw.
fieldvalueSet the HTTP major and minor versions written to the request line.
majorminorSet the URL-encoded path and query string, adding a leading slash if missing.
uri
Mutable HTTP/1 request, defaulting to GET /, HTTP/1.0, and an empty body.