MCPcopy Create free account
hub / github.com/apache/httpd / ap_fcgi_header_fields_from_array

Function ap_fcgi_header_fields_from_array

server/util_fcgi.c:52–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52AP_DECLARE(void) ap_fcgi_header_fields_from_array(unsigned char *version,
53 unsigned char *type,
54 apr_uint16_t *request_id,
55 apr_uint16_t *content_len,
56 unsigned char *padding_len,
57 unsigned char a[])
58{
59 *version = a[AP_FCGI_HDR_VERSION_OFFSET];
60 *type = a[AP_FCGI_HDR_TYPE_OFFSET];
61 *request_id = (a[AP_FCGI_HDR_REQUEST_ID_B1_OFFSET] << 8)
62 + a[AP_FCGI_HDR_REQUEST_ID_B0_OFFSET];
63 *content_len = (a[AP_FCGI_HDR_CONTENT_LEN_B1_OFFSET] << 8)
64 + a[AP_FCGI_HDR_CONTENT_LEN_B0_OFFSET];
65 *padding_len = a[AP_FCGI_HDR_PADDING_LEN_OFFSET];
66}
67
68AP_DECLARE(void) ap_fcgi_begin_request_body_to_array(ap_fcgi_begin_request_body *h,
69 unsigned char a[])

Callers 2

handle_responseFunction · 0.85
dispatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected