HTTP parsing and building library.
More...
#include "libhttp.h"
#include "sclist.h"
#include "base64.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
Go to the source code of this file.
|
HTTPHeader_t * | HTTPHeader_setname (HTTPHeader_t *header, const char *name) |
|
char * | HTTPHeader_getname (HTTPHeader_t *header) |
|
HTTPHeader_t * | HTTPHeader_setvalue (HTTPHeader_t *header, const char *value) |
|
char * | HTTPHeader_getvalue (HTTPHeader_t *header) |
|
HTTP_t * | HTTP_new () |
|
void | HTTP_del (HTTP_t *http) |
|
HTTP_t * | HTTP_setbody (HTTP_t *http, const char *body) |
|
char * | HTTP_getbody (HTTP_t *http) |
|
HTTPHeader_t * | HTTP_addheader (HTTP_t *http, const char *name, const char *value) |
|
HTTPHeader_t * | HTTP_addbasicauth (HTTP_t *http, const char *login, const char *pass) |
|
HTTPHeader_t * | HTTP_firstheader (const HTTP_t *http) |
|
HTTPHeader_t * | HTTP_nextheader (const HTTPHeader_t *header) |
|
HTTPHeader_t * | HTTP_findheader (const HTTPHeader_t *start, const char *name) |
|
HTTP_t * | HTTP_remheader (HTTP_t *http, HTTPHeader_t *header) |
|
char * | HTTP_buildheaders (const HTTP_t *http) |
|
char * | HTTP_buildrequest (const HTTPMethod_t method, const char *uri, const HTTPVersion_t version) |
|
HTTP parsing and building library.
- Author
- François Cerbelle (Fanfan), franc.nosp@m.ois@.nosp@m.cerbe.nosp@m.lle..nosp@m.net
Definition in file libhttp.c.
◆ HTTP_t
◆ HTTPHeader_t
◆ HTTP_addbasicauth()
◆ HTTP_addheader()
◆ HTTP_buildheaders()
char * HTTP_buildheaders |
( |
const HTTP_t * |
http | ) |
|
◆ HTTP_buildrequest()
◆ HTTP_del()
void HTTP_del |
( |
HTTP_t * |
http | ) |
|
◆ HTTP_findheader()
◆ HTTP_firstheader()
◆ HTTP_getbody()
char * HTTP_getbody |
( |
HTTP_t * |
http | ) |
|
◆ HTTP_new()
◆ HTTP_nextheader()
◆ HTTP_remheader()
- Todo:
- : make sclist_remrecord return a status (found/notfound) and use it
- Bug:
- Header deleted if not found in this HTTP, but it obviously belongs to another HTTP, will be freed, but not removed from his header list SIGSEGV11 to expect at some point
Definition at line 335 of file libhttp.c.
◆ HTTP_setbody()
◆ HTTPHeader_getname()
◆ HTTPHeader_getvalue()
◆ HTTPHeader_setname()
◆ HTTPHeader_setvalue()