class

FleetApp::Client

Inherits Reference < Object

An interface for HTTP::Client.

Constructors

new(host : String = FleetAppClient::HOST)
Source

Instance methods

base_url

Returns the base url for which this client will make API requests to.

Source
get(path : String)

Performs a GET request on the path.

Source
host
Source
host=(host : String)
Source
post(path : String, body : String)

Performs a POST request on the path with a body.

Source
post_with_auth(path : String, body : String, basic_auth : String)

Performs a POST request on the path with a body and authentication.

Source
set_host(host : String)

Sets the host. This method is an alias of the setter method: Alias of host=.

Source