ace v0.12.0 Ace.Request View Source

Encapsulate parameters used to open an HTTP stream.

This module is for working with requests. A request can be sent over a stream using the Ace.Client

methodThe HTTP request method, such as “GET” or “POST”, as an atom; always uppercase.
pathPath to the resource requested
headersThe headers from the HTTP request as an array of string pairs. Note all headers will be downcased, e.g. [{“content-type”, “text/plain”}]
bodytrue, false or complete body as a binary.
authority(“example.com”)The host and port of the server.
scheme(:https):http or :https, depending on the transport used.

() default value

Link to this section Summary

Functions

Just the request contain all content the will be part of the request stream

Construct a new DELETE request

Construct a new GET request

Construct a new HEAD request

Construct a new PATCH request

Construct a new POST request

Construct a new PUT request

Link to this section Functions

Just the request contain all content the will be part of the request stream.

Link to this function delete(path, headers, body) View Source

Construct a new DELETE request.

Link to this function get(path, headers \\ []) View Source

Construct a new GET request.

Link to this function head(path, headers \\ []) View Source

Construct a new HEAD request.

Link to this function new(method, path, headers, body, opts \\ []) View Source

Construct a new request.

Link to this function patch(path, headers, body) View Source

Construct a new PATCH request.

Link to this function post(path, headers, body) View Source

Construct a new POST request.

Link to this function put(path, headers, body) View Source

Construct a new PUT request.