-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathuv_http_parser.h
More file actions
40 lines (31 loc) · 868 Bytes
/
uv_http_parser.h
File metadata and controls
40 lines (31 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef UV_HTTPPARSER_H
#define UV_HTTPPARSER_H
#include "php.h"
#include "zend_exceptions.h"
#include "http_parser.h"
typedef struct {
struct http_parser parser;
struct http_parser_url handle;
struct http_parser_settings settings;
int is_response;
int was_header_value;
int finished;
zval *data;
zval *headers;
char *tmp;
size_t tmp_len;
} php_http_parser_context;
#define PHP_UV_HTTPPARSER_RESOURCE_NAME "uv_httpparser"
void register_httpparser(int module_number);
/* HTTP PARSER */
ZEND_BEGIN_ARG_INFO_EX(arginfo_uv_http_parser_init, 0, 0, 1)
ZEND_ARG_INFO(0, target)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_uv_http_parser_execute, 0, 0, 3)
ZEND_ARG_INFO(0, resource)
ZEND_ARG_INFO(0, buffer)
ZEND_ARG_INFO(0, setting)
ZEND_END_ARG_INFO()
PHP_FUNCTION(uv_http_parser_init);
PHP_FUNCTION(uv_http_parser_execute);
#endif