8#ifndef __LIBEXPRESS_RES_H
9#define __LIBEXPRESS_RES_H 1
12#include <libhmap/hmap.h>
void set_res_header(res_t *res, const char *header, char *value)
Set a particular header of the response.
Definition: res.c:262
char * get_res_header(res_t *res, const char *header)
Get the value of a particular header of the response.
Definition: res.c:268
void status_codes_init(void)
Initialize the status_codes hmap.
Definition: res.c:14
void set_res_status(res_t *res, u_int16_t status)
Set the status code of the response.
Definition: res.c:243
void res_send(res_t *res)
Send response to client.
Definition: res.c:129
void res_send_file(res_t *res, const char *path)
Send a file to the client.
Definition: res.c:180
void set_res_body(res_t *res, char *body)
Set the body of the response.
Definition: res.c:233
void mime_init(void)
Initialize the mime_types hmap.
Definition: res.c:70
Response being sent to the client.
Definition: res.h:27