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

Function read_pname

modules/http2/h2_push.c:213–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213static int read_pname(link_ctx *ctx, const char **pname)
214{
215 if (skip_ws(ctx)) {
216 size_t i;
217 for (i = ctx->i; i < ctx->slen && attr_char(ctx->s[i]); ++i) {
218 /* nop */
219 }
220 if (i > ctx->i) {
221 *pname = mk_str(ctx, i);
222 ctx->i = i;
223 return 1;
224 }
225 }
226 return 0;
227}
228
229static int read_pvalue(link_ctx *ctx, const char **pvalue)
230{

Callers 1

read_paramFunction · 0.85

Calls 3

mk_strFunction · 0.85
skip_wsFunction · 0.70
attr_charFunction · 0.70

Tested by

no test coverage detected