- Sort Score
- Result 10 results
- Languages All
Results 1301 - 1310 of 2,049 for where (0.08 sec)
-
tests/test_tutorial/test_handling_errors/test_tutorial002.py
def test_get_item_not_found_header(): response = client.get("/items-header/bar") assert response.status_code == 404, response.text assert response.headers.get("x-error") == "There goes my error" assert response.json() == {"detail": "Item not found"} def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.3K bytes - Viewed (0) -
common/scripts/lint_go.sh
# # The original version of this file is located in the https://github.com/istio/common-files repo. # If you're looking at this file in a different repo and want to make a change, please go to the # common-files repo, make the change there and check it in. Then come back to this repo and run # "make update-common". # Copyright Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License");
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Jan 26 21:57:53 UTC 2022 - 1.2K bytes - Viewed (0) -
cmd/bitrot-streaming.go
} func (b *streamingBitrotReader) ReadAt(buf []byte, offset int64) (int, error) { var err error if offset%b.shardSize != 0 { // Offset should always be aligned to b.shardSize // Can never happen unless there are programmer bugs return 0, errUnexpected } if b.rc == nil { // For the first ReadAt() call we need to open the stream for reading. b.currOffset = offset
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 21 12:20:54 UTC 2024 - 6K bytes - Viewed (0) -
docs_src/dependencies/tutorial008c_an.py
f"The portal gun is too dangerous to be owned by {username}" ) if item_id != "plumbus": raise HTTPException( status_code=404, detail="Item not found, there's only a plumbus here" )
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 710 bytes - Viewed (0) -
.github/CONTRIBUTING.md
- Don’t change public API lightly, avoid if possible, and include your reasoning in the PR if essential. It causes pain for developers who use OkHttp and sometimes runtime errors. - Favour a working external library if appropriate. There are many examples of OkHttp libraries that can sit on top or hook in via existing APIs. - Get working code on a personal branch with tests before you submit a PR.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 17 04:16:26 UTC 2019 - 1.4K bytes - Viewed (0) -
doc/initial/6-stdlib/99-minor/README
API changes and other small changes to the standard library go here....
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Jan 22 18:07:49 UTC 2024 - 69 bytes - Viewed (0) -
.github/PULL_REQUEST_TEMPLATE
+ Keep the title as short as possible. ideally under 76 characters or shorter + No Markdown + The first PR comment (this one) is wrapped at 76 characters, unless it's really needed (ASCII art, table, or long link) + If there is a corresponding issue, add either `Fixes #1234` or `Updates #1234` (the latter if this is not a complete fix) to this comment + If referring to a repo other than `golang/go` you can use the
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Feb 21 02:07:46 UTC 2018 - 1.2K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial008c.py
def test_get_no_item(client: TestClient): response = client.get("/items/foo") assert response.status_code == 404, response.text assert response.json() == {"detail": "Item not found, there's only a plumbus here"} def test_get(client: TestClient): response = client.get("/items/plumbus") assert response.status_code == 200, response.text assert response.json() == "plumbus"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 1.1K bytes - Viewed (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/Case.kt
*/ package okhttp3.internal.http2.hpackjson 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>>,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Dec 23 10:26:25 UTC 2023 - 1.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache2/FileOperatorTest.kt
bufferA.writeUtf8("Dodgson, we've got Dodgson here!\n") operatorA.write(36, bufferA, 33) operatorB.read(0, bufferB, 9) assertThat(bufferB.readUtf8()).isEqualTo("Dodgson!\n") operatorA.read(9, bufferA, 27) assertThat(bufferA.readUtf8()).isEqualTo("You shouldn't use my name.\n") operatorB.read(36, bufferB, 33) assertThat(bufferB.readUtf8()).isEqualTo("Dodgson, we've got Dodgson here!\n") } @Test
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.8K bytes - Viewed (0)