An intercepted HTTP request, as received by the fakes.
Fields
:method- the method in uppercase, like"GET".:url- the full URL, including the query string.:headers- a list of{name, value}tuples of strings, with names in lowercase. Defaults to[].:body- the body as a binary, ornilwhen there's none. A body streamed by the client arrives whole. Defaults tonil.
Summary
Functions
Builds a request from a map or a keyword list of its fields.
Types
Functions
Builds a request from a map or a keyword list of its fields.
Raises ArgumentError when :method or :url is missing.
Examples
Loopback.HTTPRequest.new(method: "GET", url: "https://api.example.com/users")