9 #ifndef __AFW_REQUEST_H__
10 #define __AFW_REQUEST_H__
34 #define AFW_REQUEST_Q_PN_CONTENT_TYPE AFW_Q_CONTENT_TYPE
40 #define AFW_REQUEST_s_PN_CONTENT_TYPE afw_s_CONTENT_TYPE
46 #define AFW_REQUEST_Q_PN_CONTENT_LENGTH AFW_Q_CONTENT_LENGTH
52 #define AFW_REQUEST_s_PN_CONTENT_LENGTH afw_s_CONTENT_LENGTH
57 #define AFW_REQUEST_Q_PN_HTTP_ACCEPT AFW_Q_HTTP_ACCEPT
62 #define AFW_REQUEST_s_PN_HTTP_ACCEPT afw_s_HTTP_ACCEPT
69 #define AFW_REQUEST_Q_PN_PATH_INFO AFW_Q_PATH_INFO
76 #define AFW_REQUEST_s_PN_PATH_INFO afw_s_PATH_INFO
83 #define AFW_REQUEST_Q_PN_QUERY_STRING AFW_Q_QUERY_STRING
90 #define AFW_REQUEST_s_PN_QUERY_STRING afw_s_QUERY_STRING
98 #define AFW_REQUEST_Q_PN_REQUEST_METHOD AFW_Q_REQUEST_METHOD
106 #define AFW_REQUEST_s_PN_REQUEST_METHOD afw_s_REQUEST_METHOD
113 #define AFW_REQUEST_Q_PN_REQUEST_URI AFW_Q_REQUEST_URI
120 #define AFW_REQUEST_s_PN_REQUEST_URI afw_s_REQUEST_URI
123 #define AFW_REQUEST_Q_METHOD_GET AFW_Q_GET
126 #define AFW_REQUEST_s_METHOD_GET afw_s_GET
129 #define AFW_REQUEST_Q_METHOD_POST AFW_Q_POST
132 #define AFW_REQUEST_s_METHOD_POST afw_s_POST
135 #define AFW_REQUEST_Q_METHOD_PUT AFW_Q_PUT
138 #define AFW_REQUEST_s_METHOD_PUT afw_s_PUT
141 #define AFW_REQUEST_Q_METHOD_PATCH AFW_Q_PATCH
144 #define AFW_REQUEST_s_METHOD_PATCH afw_s_PATCH
147 #define AFW_REQUEST_Q_METHOD_DELETE AFW_Q_DELETE
150 #define AFW_REQUEST_s_METHOD_DELETE afw_s_DELETE
155 afw_request_state_initial,
156 afw_request_state_content_read,
157 afw_request_state_status_set,
158 afw_request_state_header_written,
159 afw_request_state_response_written,
160 afw_request_state_response_finished
204 afw_request_get_response_content_type(
219 afw_request_prepare_response_content_type(
230 afw_request_response_body_raw_writer_create(
AFW_DEFINE(const afw_object_t *)
#define AFW_BEGIN_DECLARES
#define AFW_DECLARE(type)
Declare a public afw function.
Interfaceafw_interface header.
enum afw_request_state_e afw_request_state_t
const afw_value_t * afw_request_body_to_value(const afw_request_t *instance, const afw_pool_t *p, afw_xctx_t *xctx)
Read a request body to value in a specifed pool.
void afw_request_write_value_to_response_body(const afw_request_t *instance, const afw_value_t *value, const afw_object_options_t *options, afw_xctx_t *xctx)
Write value to response body.
const afw_utf8_t * afw_request_body_to_utf8(const afw_request_t *instance, const afw_pool_t *p, afw_xctx_t *xctx)
Read a request body into a utf-8 string in a specifed pool.
void afw_request_write_error_to_response_body(const afw_request_t *instance, const afw_utf8_t *code, const afw_error_t *error, afw_xctx_t *xctx)
Write xctx error to response body.
void afw_request_write_success_response(const afw_request_t *instance, const afw_object_t *response, afw_xctx_t *xctx)
Write simple success to response body.
Interface afw_content_type public struct.
Adaptive Framework Error.
Struct for object processing options.
Interface afw_object public struct.
Interface afw_pool public struct.
Interface afw_request public struct.
Interface afw_stream public struct.
NFC normalized UTF-8 string.
Interface afw_value public struct.
Interface afw_xctx public struct.