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

Function ap_scan_http_field_content

server/util.c:1654–1659  ·  view source on GitHub ↗

Scan a string for HTTP VCHAR/obs-text characters including HT and SP * (as used in header values, for example, in RFC 7230 section 3.2) * returning the pointer to the first non-HT ASCII ctrl character. */

Source from the content-addressed store, hash-verified

1652 * returning the pointer to the first non-HT ASCII ctrl character.
1653 */
1654AP_DECLARE(const char *) ap_scan_http_field_content(const char *ptr)
1655{
1656 for ( ; !TEST_CHAR(*ptr, T_HTTP_CTRLS); ++ptr) ;
1657
1658 return ptr;
1659}
1660
1661/* Scan a string for HTTP token characters, returning the pointer to
1662 * the first non-token character.

Callers 6

check_headerFunction · 0.85
validate_status_lineFunction · 0.85
mod_proxy_uwsgi.cFile · 0.85
h2_conf_add_early_hintFunction · 0.85
inv_field_value_chrFunction · 0.85
ap_get_mime_headers_coreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected