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

Function h2_util_camel_case_header

modules/http2/h2_util.c:80–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void h2_util_camel_case_header(char *s, size_t len)
81{
82 size_t start = 1;
83 size_t i;
84 for (i = 0; i < len; ++i) {
85 if (start) {
86 if (s[i] >= 'a' && s[i] <= 'z') {
87 s[i] -= 'a' - 'A';
88 }
89
90 start = 0;
91 }
92 else if (s[i] == '-') {
93 start = 1;
94 }
95 }
96}
97
98/* base64 url encoding */
99

Callers 2

add_trailerFunction · 0.85
req_add_headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected