Polyjuice Client v0.4.4 Polyjuice.Client.Endpoint.HttpSpec View Source
Link to this section Summary
Functions
Headers for endpoints that accept JSON.
Create a DELETE request.
Create a GET request.
Create a POST request.
The r0 media URL prefix
The r0 client URL prefix
The unstable client URL prefix
Create a PUT request.
Headers for endpoints that send and accept JSON.
Link to this section Types
The description of how to handle the endpoint.
methodis the HTTP verbheadersis a list of the HTTP headerspathis the path of the endpoint, relative to the homeserver's base URLqueryis an enumerable of{key, value}tuples giving the query parametersbodyis the HTTP body (if any) as a binary, or{:file, filename}transformis a function to transform the result (status code, headers, content) to a return valueauth_requiredindicates whether the end point requires authentication
Link to this section Functions
Headers for endpoints that accept JSON.
Create a DELETE request.
See get/3.
Create a GET request.
prefix is a prefix for the path. It can be one of r0 (indicating
_matrix/client/r0), unstable (indicating _matrix/client/unstable),
media_r0 (indicating _matrix/media/r0), or a string giving any other
prefix.
opts is a keyword list giving any of the other parameters for Polyjuice.Client.Endpoint.HttpSpec.t().
Create a POST request.
See get/3.
The r0 media URL prefix
The r0 client URL prefix
The unstable client URL prefix
Create a PUT request.
See get/3.
Headers for endpoints that send and accept JSON.