View Source OrbitTest (Orbit v0.3.0)
Test helpers.
Summary
Functions
Returns the response body as a binary.
Returns a new self-signed Orbit.ClientCertificate
for testing.
Returns the response meta field.
Performs a request and returns the processed request.
Returns the response status code as an atom.
Performs a full request to a Gemini server over TLS
Functions
Returns the response body as a binary.
Returns nil
if the status was not a success.
Returns a new self-signed Orbit.ClientCertificate
for testing.
Options
:days
- the number of days of validity; defaults to 1 day
Returns the response meta field.
Performs a request and returns the processed request.
If path_or_url
begins with "/"
, a path is assumed and the requested URL becomes "gemini://localhost/<path>"
.
Options
:client_cert
- the client certificate, which can be constructed withbuild_client_cert/2
:query
- the URL query string, or key/value pairs as a map or keyword list
Returns the response status code as an atom.
Performs a full request to a Gemini server over TLS
If the uri
begins with "/", a path is assumed and the requested URL becomes "gemini://<host>:<port><path>"
.
Options
:port
- the port to connect to; defaults to1965
:ssl
- the SSL options, passed on to:ssl.connect/3