Lines Matching refs:scratch
137 struct dynbuf scratch; /* scratch buffer for temp use */ member
166 Curl_dyn_init(&ctx->scratch, CURL_MAX_HTTP_HEADER); in cf_h2_ctx_init()
179 Curl_dyn_free(&ctx->scratch); in cf_h2_ctx_free()
1257 char scratch[128]; in fr_print() local
1258 size_t s_len = sizeof(scratch)/sizeof(scratch[0]); in fr_print()
1262 memcpy(scratch, frame->goaway.opaque_data, len); in fr_print()
1263 scratch[len] = '\0'; in fr_print()
1266 scratch, frame->goaway.last_stream_id); in fr_print()
1616 Curl_dyn_reset(&ctx->scratch); in on_header()
1617 result = Curl_dyn_addn(&ctx->scratch, STRCONST("HTTP/2 ")); in on_header()
1619 result = Curl_dyn_addn(&ctx->scratch, value, valuelen); in on_header()
1621 result = Curl_dyn_addn(&ctx->scratch, STRCONST(" \r\n")); in on_header()
1623 h2_xfer_write_resp_hd(cf, data_s, stream, Curl_dyn_ptr(&ctx->scratch), in on_header()
1624 Curl_dyn_len(&ctx->scratch), FALSE); in on_header()
1639 Curl_dyn_reset(&ctx->scratch); in on_header()
1640 result = Curl_dyn_addn(&ctx->scratch, (const char *)name, namelen); in on_header()
1642 result = Curl_dyn_addn(&ctx->scratch, STRCONST(": ")); in on_header()
1644 result = Curl_dyn_addn(&ctx->scratch, (const char *)value, valuelen); in on_header()
1646 result = Curl_dyn_addn(&ctx->scratch, STRCONST("\r\n")); in on_header()
1648 h2_xfer_write_resp_hd(cf, data_s, stream, Curl_dyn_ptr(&ctx->scratch), in on_header()
1649 Curl_dyn_len(&ctx->scratch), FALSE); in on_header()