class FleetApp::Client
 
  - FleetApp::Client
 - Reference
 - Object
 
Overview
An interface for HTTP::Client.
Defined in:
fleet_app/client.crConstructors
Instance Method Summary
- 
        #base_url : URI
        
          
Returns the base url for which this client will make API requests to.
 - 
        #get(path : String)
        
          
Performs a GET request on the path.
 - #host : String
 - #host=(host : String)
 - 
        #post(path : String, body : String)
        
          
Performs a POST request on the path with a body.
 - 
        #post_with_auth(path : String, body : String, basic_auth : String)
        
          
Performs a POST request on the path with a body and authentication.
 - 
        #set_host(host : String)
        
          
Sets the host.
 
Constructor Detail
Instance Method Detail
        
        def post_with_auth(path : String, body : String, basic_auth : String)
        #
      
      
        Performs a POST request on the path with a body and authentication.