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

Function h2_proxy_util_camel_case_header

modules/http2/h2_proxy_util.c:521–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519}
520
521void h2_proxy_util_camel_case_header(char *s, size_t len)
522{
523 size_t start = 1;
524 size_t i;
525 for (i = 0; i < len; ++i) {
526 if (start) {
527 if (s[i] >= 'a' && s[i] <= 'z') {
528 s[i] -= 'a' - 'A';
529 }
530
531 start = 0;
532 }
533 else if (s[i] == '-') {
534 start = 1;
535 }
536 }
537}
538
539/*******************************************************************************
540 * h2 request handling

Callers 2

h2_headers_add_h1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected