batman
This commit is contained in:
18
http/http_response.h
Normal file
18
http/http_response.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef HTTP_RESPONSE_H
|
||||
#define HTTP_RESPONSE_H
|
||||
|
||||
#include "http_content_type.h"
|
||||
#include "http_status.h"
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
typedef struct {
|
||||
HttpStatus status_code;
|
||||
HttpContentType content_type;
|
||||
size_t content_length;
|
||||
char *body;
|
||||
} HttpResponse;
|
||||
|
||||
bool construct_response(HttpResponse __res, char *out);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user