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

Function ajp_parse_header

modules/proxy/ajp_header.c:781–801  ·  view source on GitHub ↗

parse the header */

Source from the content-addressed store, hash-verified

779
780/* parse the header */
781apr_status_t ajp_parse_header(request_rec *r, proxy_dir_conf *conf,
782 ajp_msg_t *msg)
783{
784 apr_byte_t result;
785 apr_status_t rc;
786
787 rc = ajp_msg_get_uint8(msg, &result);
788 if (rc != APR_SUCCESS) {
789 ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(00994)
790 "ajp_parse_headers: ajp_msg_get_byte failed");
791 return rc;
792 }
793 if (result != CMD_AJP13_SEND_HEADERS) {
794 ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(00995)
795 "ajp_parse_headers: wrong type %s (0x%02x) expecting %s (0x%02x)",
796 ajp_type_str(result), result,
797 ajp_type_str(CMD_AJP13_SEND_HEADERS), CMD_AJP13_SEND_HEADERS);
798 return AJP_EBAD_HEADER;
799 }
800 return ajp_unmarshal_response(msg, r, conf);
801}
802
803/* parse the body and return data address and length */
804apr_status_t ajp_parse_data(request_rec *r, ajp_msg_t *msg,

Callers 1

ap_proxy_ajp_requestFunction · 0.85

Calls 3

ajp_msg_get_uint8Function · 0.85
ajp_type_strFunction · 0.85
ajp_unmarshal_responseFunction · 0.85

Tested by

no test coverage detected