- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 1,223 for headers (0.05 sec)
-
tests/test_tutorial/test_body/test_tutorial001_py310.py
"/items/", content='{"name": "Foo", "price": 50.5}', headers={"Content-Type": "application/json"}, ) assert response.status_code == 200, response.text @needs_py310 def test_geo_json(client: TestClient): response = client.post( "/items/", content='{"name": "Foo", "price": 50.5}', headers={"Content-Type": "application/geo+json"}, )
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 15K bytes - Viewed (1) -
tests/test_repeated_cookie_headers.py
client = TestClient(app) def test_cookie_is_set_once(): direct_response = client.get("/directCookie") indirect_response = client.get("/indirectCookie") assert ( direct_response.headers["set-cookie"] == indirect_response.headers["set-cookie"]
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Jun 13 12:44:51 UTC 2020 - 792 bytes - Viewed (0) -
docs_src/custom_request_and_route/tutorial003.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 1K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/PushPromise.kt
* limitations under the License. */ package mockwebserver3 import okhttp3.ExperimentalOkHttpApi import okhttp3.Headers /** An HTTP request initiated by the server. */ @ExperimentalOkHttpApi class PushPromise( val method: String, val path: String, val headers: Headers, val response: MockResponse,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 23 14:31:42 UTC 2024 - 874 bytes - Viewed (0) -
docs/extensions/s3zip/examples/aws-js/main.js
signatureVersion: 'v4' }); // List all contents stored in the zip archive s3.listObjectsV2({Bucket : 'your-bucket', Prefix: 'path/to/file.zip/'}). on('build', function(req) { req.httpRequest.headers['X-Minio-Extract'] = 'true'; }). send(function(err, data) { if (err) { console.log("Error", err); } else { console.log("Success", data); } });
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jun 10 15:17:03 UTC 2021 - 1K bytes - Viewed (0) -
docs/pt/docs/tutorial/handling-errors.md
/// ## Adicione headers customizados Há certas situações em que é bastante útil poder adicionar headers customizados no HTTP error. Exemplo disso seria adicionar headers customizados para tipos de segurança. Você provavelmente não precisará utilizar esses headers diretamente no seu código. Mas caso você precise, para um cenário mais complexo, você pode adicionar headers customizados: ```Python hl_lines="14"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10K bytes - Viewed (0) -
cmd/signature-v4-parser.go
return "", ErrMissingSignTag } if signFields[1] == "" { return "", ErrMissingFields } signature := signFields[1] return signature, ErrNone } // Parse slice of signed headers from signed headers tag. func parseSignedHeader(signedHdrElement string) ([]string, APIErrorCode) { signedHdrFields := strings.Split(strings.TrimSpace(signedHdrElement), "=") if len(signedHdrFields) != 2 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.4K bytes - Viewed (0) -
tests/test_dependency_contextvars.py
@app.middleware("http") async def custom_middleware( request: Request, call_next: Callable[[Request], Awaitable[Response]] ): response = await call_next(request) response.headers["custom"] = "foo" return response @app.get("/user", dependencies=[Depends(set_up_request_state_dependency)]) def get_user(): request_state = legacy_request_state_context_var.get() assert request_state
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Feb 17 12:40:12 UTC 2022 - 1.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ConnectionReuseTest.kt
Request.Builder() .url(server.url("/")) .header("Connection", "close") .build() val requestB = Request(server.url("/")) assertConnectionNotReused(requestA, requestB) } @Test fun connectionsAreNotReusedWithResponseConnectionClose() { server.enqueue( MockResponse( headers = headersOf("Connection", "close"), body = "a", ), )
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 12.3K bytes - Viewed (0) -
build-logic-commons/code-quality-rules/src/main/resources/classycle/classycle_report_resources.zip
background-color:#aaaaaa; } td a img { border-width:0; margin-left:5pt; vertical-align:middle;} <!-- var number = /^\d*$/; function showTable(title, headers, content) { text = "<h3>" + title + "</h3><p>"; if (content.length > 0) { text += "<table border=\"1\" cellpadding=\"5\" cellspacing=\"0\">"; if (headers.length > 0) { text += "<tr>"; headerArray = headers.split(","); for (i = 0; i < headerArray.length; i++) { text += "<th>" + headerArray[i] + "</th>"; } text += "</tr>"; } rows = content.split(";");...
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 23.4K bytes - Viewed (0)