Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3069303
response.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
response.h
View Options
#ifndef RESPONSE_H
#define RESPONSE_H
#include
<stdbool.h>
#include
<stddef.h>
#include
<stdint.h>
#include
"types.h"
#include
"modules/headers.h"
#include
"modules/url.h"
typedef
struct
{
char
*
type
;
url_state_t
url
;
bool
has_url
;
int
url_list_size
;
int
status
;
char
*
status_text
;
uint8_t
*
body_data
;
size_t
body_size
;
char
*
body_type
;
bool
body_is_stream
;
bool
has_body
;
bool
body_used
;
}
response_data_t
;
extern
ant_value_t
g_response_proto
;
void
init_response_module
(
void
);
response_data_t
*
response_get_data
(
ant_value_t
obj
);
ant_value_t
response_get_headers
(
ant_value_t
obj
);
ant_value_t
response_create
(
ant_t
*
js
,
const
char
*
type
,
int
status
,
const
char
*
status_text
,
ant_value_t
headers_obj
,
const
uint8_t
*
body
,
size_t
body_len
,
const
char
*
body_type
,
headers_guard_t
guard
);
ant_value_t
response_create_fetched
(
ant_t
*
js
,
int
status
,
const
char
*
status_text
,
const
char
*
url
,
ant_value_t
headers_obj
,
const
uint8_t
*
body
,
size_t
body_len
,
ant_value_t
body_stream
,
const
char
*
body_type
);
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Fri, Apr 3, 11:35 PM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
521967
Default Alt Text
response.h (1 KB)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment