Home
last modified time | relevance | path

Searched refs:trailers (Results 1 - 25 of 32) sorted by relevance

12

/third_party/rust/crates/nix/src/sys/
H A Dsendfile.rs83 trailers: Option<&'a [&'a [u8]]> in new()
88 trailers.map(|s| s.iter().map(|b| IoSlice::new(b)).collect());
97 trailers: {
148 /// `headers` and `trailers` specify optional slices of byte slices to be sent before and
149 /// after the data read from `in_fd`, respectively. The length of headers and trailers sent
151 /// do not apply to headers or trailers.
165 trailers: Option<&[&[u8]]>, in sendfile()
175 let hdtr = headers.or(trailers).map(|_| SendfileHeaderTrailer::new(headers, trailers)); in sendfile()
202 /// `headers` and `trailers` specif
[all...]
/third_party/python/Lib/lib2to3/fixes/
H A Dfix_filter.py62 trailers = []
65 trailers.append(t.clone())
76 new = Node(syms.power, [new] + trailers, prefix="")
83 new = Node(syms.power, [new] + trailers, prefix="")
91 new = Node(syms.power, [Name("list"), ArgList([new])] + trailers)
H A Dfix_zip.py21 power< 'zip' args=trailer< '(' [any] ')' > [trailers=trailer*]
37 trailers = []
38 if 'trailers' in results:
39 trailers = [n.clone() for n in results['trailers']]
40 for n in trailers:
44 new = Node(syms.power, [Name("list"), ArgList([new])] + trailers)
H A Dfix_map.py68 trailers = []
71 trailers.append(t.clone())
82 new = Node(syms.power, [new] + trailers, prefix="")
106 new = Node(syms.power, [Name("list"), ArgList([new])] + trailers)
/third_party/rust/crates/nix/test/
H A Dtest_sendfile.rs75 // Prepare headers and trailers for sendfile in test_sendfile_freebsd()
78 let trailers: Vec<&[u8]> = in test_sendfile_freebsd()
91 Some(trailers.as_slice()), in test_sendfile_freebsd()
126 // Prepare headers and trailers for sendfile in test_sendfile_dragonfly()
129 let trailers: Vec<&[u8]> = in test_sendfile_dragonfly()
142 Some(trailers.as_slice()), in test_sendfile_dragonfly()
175 // Prepare headers and trailers for sendfile in test_sendfile_darwin()
178 let trailers: Vec<&[u8]> = in test_sendfile_darwin()
191 Some(trailers.as_slice()), in test_sendfile_darwin()
/third_party/node/test/parallel/
H A Dtest-http2-compat-serverrequest-trailers.js9 // Http2ServerRequest should have getter for trailers & rawTrailers
24 const trailers = request.trailers;
26 assert.strictEqual(trailers[name], value);
H A Dtest-set-incoming-message-header.js17 im.trailers = { key: 'value' };
18 assert.deepStrictEqual(im.trailers, { key: 'value' });
/third_party/node/deps/ngtcp2/nghttp3/lib/
H A Dnghttp3_http.c825 nghttp3_qpack_nv *nv, int trailers, in http_request_on_header()
830 if (trailers || in http_request_on_header()
908 if (trailers) { in http_request_on_header()
928 if (!lstrieq("trailers", nv->value->base, nv->value->len)) { in http_request_on_header()
933 if (!trailers && !(http->flags & NGHTTP3_HTTP_FLAG_BAD_PRIORITY)) { in http_request_on_header()
956 nghttp3_qpack_nv *nv, int trailers) { in http_response_on_header()
958 if (trailers || in http_response_on_header()
983 if (trailers) { in http_response_on_header()
1025 if (!lstrieq("trailers", nv->value->base, nv->value->len)) { in http_response_on_header()
1300 int request, int trailers, in in nghttp3_http_on_header()
824 http_request_on_header(nghttp3_http_state *http, nghttp3_qpack_nv *nv, int trailers, int connect_protocol) http_request_on_header() argument
955 http_response_on_header(nghttp3_http_state *http, nghttp3_qpack_nv *nv, int trailers) http_response_on_header() argument
1299 nghttp3_http_on_header(nghttp3_http_state *http, nghttp3_qpack_nv *nv, int request, int trailers, int connect_protocol) nghttp3_http_on_header() argument
[all...]
H A Dnghttp3_http.h89 * to |trailers| if |nv| is included in trailers. |connect_protocol|
102 int request, int trailers, int connect_protocol);
H A Dnghttp3_conn.c1538 int trailers = 0; in conn_decode_headers() local
1551 trailers = 1; in conn_decode_headers()
1599 http, &nv, request, trailers, in conn_decode_headers()
/third_party/node/deps/undici/src/lib/core/
H A Drequest.js43 channels.trailers = diagnosticsChannel.channel('undici:request:trailers')
49 channels.trailers = { hasSubscribers: false }
300 onComplete (trailers) {
306 if (channels.trailers.hasSubscribers) {
307 channels.trailers.publish({ request: this, trailers })
311 return this[kHandler].onComplete(trailers)
/third_party/curl/lib/
H A Dhttp.h103 CURLcode Curl_http_compile_trailers(struct curl_slist *trailers,
263 * All about a core HTTP request, excluding body and trailers
271 struct dynhds trailers; member
314 * All about a core HTTP response, excluding body and trailers
320 struct dynhds trailers; member
H A Dtransfer.c129 * This function will be called to loop through the trailers buffer
172 struct curl_slist *trailers = NULL; in Curl_fillreadbuffer() local
177 so we compile and store the trailers buffer, then proceed */ in Curl_fillreadbuffer()
179 "Moving trailers state machine from initialized to sending."); in Curl_fillreadbuffer()
185 trailers_ret_code = data->set.trailer_callback(&trailers, in Curl_fillreadbuffer()
189 result = Curl_http_compile_trailers(trailers, &data->state.trailers_buf, in Curl_fillreadbuffer()
199 curl_slist_free_all(trailers); in Curl_fillreadbuffer()
202 infof(data, "Successfully compiled trailers."); in Curl_fillreadbuffer()
203 curl_slist_free_all(trailers); in Curl_fillreadbuffer()
350 infof(data, "Signaling end of chunked upload after trailers in Curl_fillreadbuffer()
[all...]
H A Dhttp.c1648 /* used to compile the provided trailers into one buffer
1651 CURLcode Curl_http_compile_trailers(struct curl_slist *trailers, in Curl_http_compile_trailers() argument
1674 while(trailers) { in Curl_http_compile_trailers()
1675 /* only add correctly formatted trailers */ in Curl_http_compile_trailers()
1676 ptr = strchr(trailers->data, ':'); in Curl_http_compile_trailers()
1678 result = Curl_dyn_add(b, trailers->data); in Curl_http_compile_trailers()
1687 trailers = trailers->next; in Curl_http_compile_trailers()
4630 Curl_dynhds_init(&req->trailers, 0, DYN_HTTP_REQUEST); in Curl_http_req_make()
4788 Curl_dynhds_init(&req->trailers, in Curl_http_req_make2()
[all...]
/third_party/nghttp2/src/
H A Dshrpx_http2_downstream_connection.cc201 const auto &trailers = req.fs.trailers(); in http2_data_read_callback() local
202 if (!trailers.empty()) { in http2_data_read_callback()
204 nva.reserve(trailers.size()); in http2_data_read_callback()
205 http2::copy_headers_to_nva_nocopy(nva, trailers, http2::HDOP_STRIP_ALL); in http2_data_read_callback()
453 // "trailers". We just forward "trailers". in push_request_headers()
456 nva.push_back(http2::make_nv_ll("te", "trailers")); in push_request_headers()
H A Dshrpx_downstream.h75 const HeaderRefs &trailers() const { return trailers_; } in trailers() function in shrpx::FieldStore
78 HeaderRefs &trailers() { return trailers_; } in trailers() function in shrpx::FieldStore
H A Dshrpx_http_downstream_connection.cc814 const auto &trailers = req.fs.trailers(); in end_upload_data_chunk() local
815 if (trailers.empty()) { in end_upload_data_chunk()
819 http2::build_http1_headers_from_headers(output, trailers, in end_upload_data_chunk()
1178 for (auto &kv : resp.fs.trailers()) { in htp_msg_completecb()
H A Dshrpx_https_upstream.cc593 for (auto &kv : req.fs.trailers()) { in htp_msg_completecb()
1369 const auto &trailers = resp.fs.trailers(); in on_downstream_body_complete() local
1370 if (trailers.empty()) { in on_downstream_body_complete()
1374 http2::build_http1_headers_from_headers(output, trailers, in on_downstream_body_complete()
H A Dhttp2.cc1944 constexpr auto trailers = StringRef::from_lit("trailers");
1948 if (p == end || static_cast<size_t>(end - p) < trailers.size()) {
1951 if (util::strieq(trailers, StringRef{p, p + trailers.size()})) {
1954 p = std::find_if(p + trailers.size(), end,
H A Dshrpx_http2_upstream.cc1478 const auto &trailers = resp.fs.trailers(); in downstream_data_read_callback() local
1479 if (!trailers.empty()) { in downstream_data_read_callback()
1481 nva.reserve(trailers.size()); in downstream_data_read_callback()
1482 http2::copy_headers_to_nva_nocopy(nva, trailers, http2::HDOP_STRIP_ALL); in downstream_data_read_callback()
H A Dshrpx_http3_upstream.cc1488 const auto &trailers = resp.fs.trailers(); in on_downstream_body_complete() local
1489 if (!trailers.empty()) { in on_downstream_body_complete()
1491 nva.reserve(trailers.size()); in on_downstream_body_complete()
1492 http3::copy_headers_to_nva_nocopy(nva, trailers, http2::HDOP_STRIP_ALL); in on_downstream_body_complete()
/third_party/node/deps/undici/src/lib/handler/
H A DRedirectHandler.js146 onComplete (trailers) {
151 TLDR: undici always ignores 3xx response trailers as they are not expected in case of redirections
162 this.handler.onComplete(trailers)
/third_party/node/deps/undici/src/lib/mock/
H A Dmock-utils.js230 const { data: { statusCode, data, headers, trailers, error }, delay, persist } = mockDispatch
275 const responseTrailers = generateKeyValues(trailers)
/third_party/node/lib/internal/http2/
H A Dcompat.js77 const kTrailers = Symbol('trailers');
131 value === 'trailers';
152 function onStreamTrailers(trailers, flags, rawTrailers) {
155 ObjectAssign(request[kTrailers], trailers);
338 stream.on('trailers', onStreamTrailers);
371 get trailers() {
/third_party/python/Lib/test/
H A Dtest_httplib.py49 trailers = "X-Dummy: foo\r\nX-Dumm2: bar\r\n" variable
499 trailers = {}
1258 """See that trailers are read and ignored"""
1260 sock = FakeSocket(chunked_start + last_chunk + trailers + chunked_end)
1272 sock = FakeSocket(chunked_start + last_chunk + trailers + chunked_end + extradata)
1441 '\r\n' # end of trailers
1557 '\r\n' # end of trailers

Completed in 35 milliseconds

12