Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3054025
request.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
request.h
View Options
#ifndef REQUEST_H
#define REQUEST_H
#include
<stdint.h>
#include
<stddef.h>
#include
<stdbool.h>
#include
"types.h"
#include
"modules/url.h"
typedef
struct
{
char
*
method
;
url_state_t
url
;
char
*
referrer
;
char
*
referrer_policy
;
char
*
mode
;
char
*
credentials
;
char
*
cache
;
char
*
redirect
;
char
*
integrity
;
bool
keepalive
;
bool
reload_navigation
;
bool
history_navigation
;
uint8_t
*
body_data
;
size_t
body_size
;
char
*
body_type
;
bool
body_is_stream
;
bool
has_body
;
bool
body_used
;
}
request_data_t
;
extern
ant_value_t
g_request_proto
;
void
init_request_module
(
void
);
request_data_t
*
request_get_data
(
ant_value_t
obj
);
ant_value_t
request_get_headers
(
ant_value_t
obj
);
ant_value_t
request_get_signal
(
ant_t
*
js
,
ant_value_t
obj
);
ant_value_t
request_create_from_input_init
(
ant_t
*
js
,
ant_value_t
input
,
ant_value_t
init
);
ant_value_t
request_create
(
ant_t
*
js
,
const
char
*
method
,
const
char
*
url
,
ant_value_t
headers
,
const
uint8_t
*
body
,
size_t
body_len
,
const
char
*
body_type
);
ant_value_t
request_create_server
(
ant_t
*
js
,
const
char
*
method
,
const
char
*
target
,
bool
absolute_target
,
const
char
*
host
,
const
char
*
server_hostname
,
int
server_port
,
ant_value_t
headers
,
const
uint8_t
*
body
,
size_t
body_len
,
const
char
*
body_type
);
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Fri, Apr 3, 4:18 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
521443
Default Alt Text
request.h (1 KB)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment