Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_command_local_request.h
Go to the documentation of this file.
1 // See the 'COPYING' file in the project root for licensing information.
2 /*
3  * Interface afw_request implementation for afw_command_local
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
9 #ifndef __AFW_COMMAND_LOCAL_REQUEST_H__
10 #define __AFW_COMMAND_LOCAL_REQUEST_H__
11 
12 #include "afw_interface.h"
15 
16 
31 
35 typedef struct
37  afw_request_t pub;
38 
40  const afw_memory_t *body;
41  afw_size_t remaining_body;
42 
43  /* Request state. */
44  afw_request_state_t state;
45 
46  /* These are pairs of const afw_utf8_t * for name and value or NULL. */
47  apr_array_header_t *response_headers;
48 
49  /* Response status code and reason. */
50  const afw_utf8_t *status_code;
51  const afw_utf8_t *status_reason;
52 
54 
55 
56 
58 afw_command_local_request_create(
60  const afw_memory_t *body,
61  const afw_object_t *properties,
62  afw_xctx_t *xctx);
63 
64 
65 
66 AFW_END_DECLARES
67 
68 #endif /* __AFW_COMMAND_LOCAL_REQUEST_H__ */
69 
Adaptive Framework declare helpers for afw_command_.
#define AFW_COMMAND_DECLARE_INTERNAL(type)
Declare an internal function for /src/afw_command/ source*.h files.
Implementation for interface afw_command_local.
#define AFW_BEGIN_DECLARES
Interfaceafw_interface header.
struct afw_command_local_request_self_s afw_command_local_request_self_t
Self typedef for afw_command_local implementation of afw_request.
apr_size_t afw_size_t
size_t.
Definition: afw_common.h:151
enum afw_request_state_e afw_request_state_t
Self typedef for afw_command_local implementation of afw_request.
Self typedef for afw_command_local implementation of afw_server.
Struct for memory pointer and size.
Definition: afw_common.h:505
Interface afw_object public struct.
Interface afw_request public struct.
NFC normalized UTF-8 string.
Definition: afw_common.h:545
Interface afw_xctx public struct.