HTTP client library.  
More...
◆ GATE_HTTPCLIENT_FLAG_SECURE
      
        
          | #define GATE_HTTPCLIENT_FLAG_SECURE   0x0001 | 
        
      
 
 
◆ GATE_HTTPCLIENT_FLAG_DISABLE_VERIFICATION
      
        
          | #define GATE_HTTPCLIENT_FLAG_DISABLE_VERIFICATION   0x0002 | 
        
      
 
disable certificate verification 
 
 
◆ GATE_HTTPCLIENT_FLAG_NATIVE_IMPL
      
        
          | #define GATE_HTTPCLIENT_FLAG_NATIVE_IMPL   0x4000 | 
        
      
 
uses a native TCP socket implementation 
 
 
◆ gate_httpclient_create()
Initialize a new HTTP client object. 
- Parameters
 - 
  
    | [out] | client | Pointer to object to be initialized  | 
    | [in] | server | Address (IP or hostname) of HTTP server to be connected  | 
    | [in] | port | Server port to be used for connection  | 
    | [in] | flags | combination of GATE_HTTPCLIENT_FLAG_* values  | 
  
   
- Returns
 - GATE_RESULT_* result code 
 
 
 
◆ gate_httpclient_send_request()
      
        
          | GATE_NET_API gate_result_t gate_httpclient_send_request  | 
          ( | 
          gate_httpclient_t * |           client,  | 
        
        
           | 
           | 
          gate_http_request_t * |           request,  | 
        
        
           | 
           | 
          gate_http_response_t * |           response ) | 
        
      
 
Sends a HTTP request and receives the response from the HTTP server. 
- Parameters
 - 
  
    | [in] | client | Pointer to initialized HTTP client object  | 
    | [in] | request | Pointer to prepared HTTP request context object  | 
    | [out] | response | Pointer to HTTP response object to be initialized with data from the received HTTP response  | 
  
   
- Returns
 - GATE_RESULT_* result code 
 
 
 
◆ gate_httpclient_release()
      
        
          | GATE_NET_API gate_result_t gate_httpclient_release  | 
          ( | 
          gate_httpclient_t * |           client | ) | 
           | 
        
      
 
Releases all resources acquired by the HTTP client object. 
- Parameters
 - 
  
    | [in] | client | Pointer to HTTP client object  | 
  
   
- Returns
 - GATE_RESULT_* result code