rsstats 0.0.1
Redis Enterprise Statistic collector
libhttp.c File Reference

HTTP parsing and building library. More...

#include "libhttp.h"
#include "sclist.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
Include dependency graph for libhttp.c:

Go to the source code of this file.

Classes

struct  HTTPHeaders_s
 
struct  HTTP_s
 

Typedefs

typedef struct HTTPHeaders_s HTTPHeaders_t
 
typedef struct HTTP_s HTTP_t
 

Functions

HTTP_tHTTP_new ()
 
void HTTP_addheader (HTTP_t *http, const char *name, const char *value)
 
char * HTTP_getheaders (const HTTP_t *http)
 
void HTTP_del (HTTP_t *http)
 
char * HTTP_getrequest (const HTTPMethod_t method, const char *uri, const HTTPVersion_t version)
 
void HTTP_setbody (HTTP_t *http, const char *body)
 
char * HTTP_getbody (HTTP_t *http)
 

Detailed Description

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.

Typedef Documentation

◆ HTTP_t

typedef struct HTTP_s HTTP_t

◆ HTTPHeaders_t

typedef struct HTTPHeaders_s HTTPHeaders_t

Function Documentation

◆ HTTP_addheader()

void HTTP_addheader ( HTTP_t http,
const char *  name,
const char *  value 
)

Definition at line 56 of file libhttp.c.

Here is the call graph for this function:

◆ HTTP_del()

void HTTP_del ( HTTP_t http)

Definition at line 114 of file libhttp.c.

Here is the call graph for this function:

◆ HTTP_getbody()

char * HTTP_getbody ( HTTP_t http)

Definition at line 206 of file libhttp.c.

◆ HTTP_getheaders()

char * HTTP_getheaders ( const HTTP_t http)

Definition at line 80 of file libhttp.c.

Here is the call graph for this function:

◆ HTTP_getrequest()

char * HTTP_getrequest ( const HTTPMethod_t  method,
const char *  uri,
const HTTPVersion_t  version 
)

Definition at line 135 of file libhttp.c.

◆ HTTP_new()

HTTP_t * HTTP_new ( )

Definition at line 37 of file libhttp.c.

Here is the call graph for this function:

◆ HTTP_setbody()

void HTTP_setbody ( HTTP_t http,
const char *  body 
)

Definition at line 191 of file libhttp.c.