class FleetApp::ClientWrapper

Overview

Wraps over the client's response bodies and returns result objects.

Defined in:

fleet_app/client_wrapper.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(environment : String, client : FleetApp::Client? = nil) #

[View source]

Instance Method Detail

def client : FleetApp::Client #

[View source]
def get(game_name : String, path : String) #

Executes a GET request to Fleet App.


[View source]
def post(game_name : String, path : String, body : String) #

Executes a POST request to Fleet App.


[View source]
def post_with_auth(game_name : String, path : String, body : String, basic_auth : String) #

Executes a POST request with basic auth to Fleet App.


[View source]