Tizen RT Libs&Environment  v1.0 D5
webclient.h File Reference

APIs for HTTP Client. More...

#include <tinyara/config.h>
#include <sys/types.h>
#include "tls/config.h"
#include "tls/entropy.h"
#include "tls/ctr_drbg.h"
#include "tls/certs.h"
#include "tls/x509.h"
#include "tls/ssl.h"
#include "tls/net.h"
#include "tls/error.h"
#include "tls/debug.h"
#include "tls/ssl_cache.h"
#include <apps/netutils/webserver/http_keyvalue_list.h>
Include dependency graph for webclient.h:

Go to the source code of this file.

Data Structures

struct  http_client_tls_t
 HTTP client TLS structure. More...
 
struct  http_client_ssl_config_t
 SSL configure structure. More...
 
struct  http_client_request_t
 HTTP request structure. More...
 
struct  http_client_response_t
 HTTP response structure. More...
 

Macros

#define WGET_MODE_GET   0
 
#define WGET_MODE_POST   1
 
#define WGET_MODE_PUT   2
 
#define WGET_MODE_DELETE   3
 
#define CONTENT_LENGTH   0
 
#define CHUNKED_ENCODING   1
 
#define WEBCLIENT_CONF_MAX_URL_SIZE   50
 
#define WEBCLIENT_CONF_MAX_ENTITY_SIZE   2048
 
#define WEBCLIENT_CONF_MAX_PHRASE_SIZE   50
 
#define WEBCLIENT_CONF_MAX_MESSAGE_SIZE   2100
 
#define WEBCLIENT_CONF_TIMEOUT_MSEC   5000
 
#define WEBCLIENT_CONF_MIN_TLS_MEMORY   100000
 
#define EXTERN   extern
 

Typedefs

typedef struct http_client_response_thttprsp
 
typedef void(* wget_callback_t) (httprsp)
 

Functions

int http_client_send_request (struct http_client_request_t *request, struct http_client_ssl_config_t *ssl_config, struct http_client_response_t *response)
 http_client_send_request() sends the HTTP request to HTTP server with synchronous function. More...
 
int http_client_send_request_async (struct http_client_request_t *request, struct http_client_ssl_config_t *ssl_config, wget_callback_t cb)
 http_client_send_request_async() sends the HTTP request to HTTP server with asynchronous function. More...
 
int http_client_response_init (struct http_client_response_t *response)
 http_client_response_init() initializes the response structure. More...
 
void http_client_response_release (struct http_client_response_t *response)
 http_client_response_release() releases the response structure. More...
 

Detailed Description

APIs for HTTP Client.

Definition in file webclient.h.