- Sort Score
- Num 10 results
- Language All
Results 141 - 150 of 818 for tenders (0.05 seconds)
-
tests/test_stream_bare_type.py
assert response.status_code == 200 assert response.headers["content-type"] == "application/jsonl" lines = [json.loads(line) for line in response.text.strip().splitlines()] assert lines == [{"name": "foo"}] def test_stream_bare_sync_iterable(): response = client.get("/items/stream-bare-sync") assert response.status_code == 200 assert response.headers["content-type"] == "application/jsonl"Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 18:56:47 GMT 2026 - 1.1K bytes - Click Count (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/Case.kt
import okhttp3.internal.http2.Header import okio.ByteString /** * Representation of an individual case (set of headers and wire format). There are many cases for a * single story. This class is used reflectively with Moshi to parse stories. */ data class Case( val seqno: Int = 0, val wire: ByteString? = null, val headers: List<Map<String, String>>, ) : Cloneable { val headersList: List<Header> get() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Dec 23 10:26:25 GMT 2023 - 1.3K bytes - Click Count (0) -
internal/handlers/proxy.go
if match := forRegex.FindStringSubmatch(fwd); len(match) > 1 { // IPv6 addresses in Forwarded headers are quoted-strings. We strip // these quotes. addr = strings.Trim(match[1], `"`) } } } return addr } // GetSourceIPRaw retrieves the IP from the request headers // and falls back to r.RemoteAddr when necessary. // however returns without bracketing.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Feb 26 19:25:49 GMT 2025 - 5.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HeadersRequestTest.kt
val response = readHttp2HeadersList(headerBlock, Protocol.HTTP_2).request(request).build() val headers = response.headers assertThat(headers.size).isEqualTo(1) assertThat(headers.name(0)).isEqualTo(":version") assertThat(headers.value(0)).isEqualTo("HTTP/1.1") } @Test fun http2HeadersListDropsForbiddenHeadersHttp2() { val request = Request .Builder()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2.5K bytes - Click Count (0) -
docs/features/interceptors.md
} ``` ### Rewriting Responses Symmetrically, interceptors can rewrite response headers and transform the response body. This is generally more dangerous than rewriting request headers because it may violate the webserver's expectations!
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 8.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartReader.kt
} } } // There's another part. Parse its headers and return it. val headers = HeadersReader(source).readHeaders() val partSource = PartSource() currentPart = partSource return Part(headers, partSource.buffer()) } /** A single part in the stream. It is an error to read this after calling [nextPart]. */Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 7.3K bytes - Click Count (0) -
tests/test_request_params/test_header/test_list.py
} @pytest.mark.parametrize( "path", ["/required-list-str", "/model-required-list-str"], ) def test_required_list_str(path: str): client = TestClient(app) response = client.get(path, headers=[("p", "hello"), ("p", "world")]) assert response.status_code == 200 assert response.json() == {"p": ["hello", "world"]} # =====================================================================================
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 11.3K bytes - Click Count (0) -
docs_src/response_headers/tutorial002_py310.py
from fastapi import FastAPI, Response app = FastAPI() @app.get("/headers-and-object/") def get_headers(response: Response): response.headers["X-Cat-Dog"] = "alone in the world"
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 222 bytes - Click Count (0) -
cmd/signature-v2.go
} // Return canonical headers. func canonicalizedAmzHeadersV2(headers http.Header) string { var keys []string keyval := make(map[string]string, len(headers)) for key := range headers { lkey := strings.ToLower(key) if !strings.HasPrefix(lkey, "x-amz-") { continue } keys = append(keys, lkey) keyval[lkey] = strings.Join(headers[key], ",") } sort.Strings(keys)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 12.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2Test.kt
return out } private fun sendHeaderFrames( outFinished: Boolean, headers: List<Header>, ): Buffer { val out = Buffer() Http2Writer(out, true).headers(outFinished, expectedStreamId, headers) return out } private fun sendPushPromiseFrames( streamId: Int, headers: List<Header>, ): Buffer { val out = Buffer()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 28.1K bytes - Click Count (0)