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

Function read_ptoken

modules/http2/h2_push.c:183–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183static int read_ptoken(link_ctx *ctx, const char **ps)
184{
185 if (skip_ws(ctx)) {
186 size_t i;
187 for (i = ctx->i; i < ctx->slen && ptoken_char(ctx->s[i]); ++i) {
188 /* nop */
189 }
190 if (i > ctx->i) {
191 *ps = mk_str(ctx, i);
192 ctx->i = i;
193 return 1;
194 }
195 }
196 return 0;
197}
198
199
200static int read_link(link_ctx *ctx)

Callers 1

read_pvalueFunction · 0.85

Calls 3

mk_strFunction · 0.85
skip_wsFunction · 0.70
ptoken_charFunction · 0.70

Tested by

no test coverage detected