Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7540267
http1_parser.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
746 B
Referenced Files
None
Subscribers
None
http1_parser.h
View Options
#ifndef ANT_HTTP1_PARSER_H
#define ANT_HTTP1_PARSER_H
#include
<stdbool.h>
#include
<stddef.h>
#include
<stdint.h>
#include
"modules/http.h"
typedef
struct
{
char
*
method
;
char
*
target
;
char
*
host
;
char
*
content_type
;
ant_http_header_t
*
headers
;
uint8_t
*
body
;
size_t
body_len
;
size_t
content_length
;
bool
absolute_target
;
bool
keep_alive
;
}
ant_http1_parsed_request_t
;
typedef
enum
{
ANT_HTTP1_PARSE_INCOMPLETE
=
0
,
ANT_HTTP1_PARSE_OK
,
ANT_HTTP1_PARSE_ERROR
,
}
ant_http1_parse_result_t
;
ant_http1_parse_result_t
ant_http1_parse_request
(
const
char
*
data
,
size_t
len
,
ant_http1_parsed_request_t
*
out
,
const
char
**
error_reason
);
void
ant_http1_free_parsed_request
(
ant_http1_parsed_request_t
*
req
);
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Wed, Jun 17, 1:37 PM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
575398
Default Alt Text
http1_parser.h (746 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment