Tizen RT Libs&Environment
v1.0 D5
|
APIs for HTTP Server. More...
#include <stdio.h>
#include <mqueue.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <netinet/in.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"
Go to the source code of this file.
Data Structures | |
struct | ssl_config_t |
http server ssl config structure. More... | |
struct | http_req_message |
http request message. More... | |
struct | http_server_t |
http server structure. More... | |
Typedefs | |
typedef void(* | http_cb_t) (struct http_client_t *client, struct http_req_message *msg) |
typedef for callback function. More... | |
Enumerations |
Functions | |
struct http_server_t * | http_server_init (int port) |
http_server_init() initializes the webserver. More... | |
int | http_server_start (struct http_server_t *server) |
http_server_start() starts the webserver. More... | |
int | http_server_stop (struct http_server_t *server) |
http_server_stop() stops the webserver. Both HTTP server and HTTPS server are stoped by this function. More... | |
void | http_server_release (struct http_server_t **server) |
http_server_release() releases the struct http_server_t. More... | |
int | http_server_register_cb (struct http_server_t *server, int method, const char *url_format, http_cb_t func) |
http_server_register_cb() registers the cb function to each method on webserver. More... | |
int | http_server_deregister_cb (struct http_server_t *server, int method, const char *url_format) |
http_server_deregister_cb() deregisters the cb function to each method on webserver. More... | |
int | http_send_response (struct http_client_t *client, int status, const char *body, struct http_keyvalue_list_t *headers) |
http_send_response() sends the response. If receive request, you must send a response by this function. More... | |
int | http_tls_init (struct http_server_t *server, struct ssl_config_t *ssl_config) |
http_tls_init() initializes the TLS configuere for webserver. More... | |
APIs for HTTP Server.
Definition in file http_server.h.