| 79 | } |
| 80 | |
| 81 | AP_DECLARE(void) ap_fcgi_fill_in_header(ap_fcgi_header *header, |
| 82 | unsigned char type, |
| 83 | apr_uint16_t request_id, |
| 84 | apr_uint16_t content_len, |
| 85 | unsigned char padding_len) |
| 86 | { |
| 87 | header->version = AP_FCGI_VERSION_1; |
| 88 | |
| 89 | header->type = type; |
| 90 | |
| 91 | header->requestIdB1 = ((request_id >> 8) & 0xff); |
| 92 | header->requestIdB0 = ((request_id) & 0xff); |
| 93 | |
| 94 | header->contentLengthB1 = ((content_len >> 8) & 0xff); |
| 95 | header->contentLengthB0 = ((content_len) & 0xff); |
| 96 | |
| 97 | header->paddingLength = padding_len; |
| 98 | |
| 99 | header->reserved = 0; |
| 100 | } |
| 101 | |
| 102 | AP_DECLARE(void) ap_fcgi_fill_in_request_body(ap_fcgi_begin_request_body *brb, |
| 103 | int role, |
no outgoing calls
no test coverage detected