- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 50 for 302 (0.08 seconds)
-
docs_src/custom_response/tutorial006c_py310.py
from fastapi import FastAPI from fastapi.responses import RedirectResponse app = FastAPI() @app.get("/pydantic", response_class=RedirectResponse, status_code=302) async def redirect_pydantic():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 237 bytes - Click Count (0) -
docs_src/additional_responses/tutorial004_py310.py
from fastapi.responses import FileResponse from pydantic import BaseModel class Item(BaseModel): id: str value: str responses = { 404: {"description": "Item not found"}, 302: {"description": "The item was moved"}, 403: {"description": "Not enough privileges"}, } app = FastAPI() @app.get( "/items/{item_id}", response_model=Item,
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 669 bytes - Click Count (0) -
docs/features/calls.md
If a conditional GET was successful, responses from the network and cache are merged as directed by the spec. ## Follow-up Requests When your requested URL has moved, the webserver will return a response code like `302` to indicate the document’s new URL. OkHttp will follow the redirect to retrieve a final response.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:01:42 GMT 2026 - 3.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt
assertThat(suppressed).isNotSameAs(expected) } } } @Test fun responseRequestIsLastRedirect() { server.enqueue( MockResponse( code = 302, headers = headersOf("Location", "/b"), ), ) server.enqueue(MockResponse()) val request = Request(server.url("/")) val call = client.newCall(request)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Jun 20 11:46:46 GMT 2025 - 8.4K bytes - Click Count (0) -
cmd/storagemetric_string.go
Harshavardhana <******@****.***> 1723451895 -0700
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Aug 12 08:38:15 GMT 2024 - 2.2K bytes - Click Count (0) -
cmd/apierrorcode_string.go
_ = x[ErrIncorrectSQLFunctionArgumentType-297] _ = x[ErrValueParseFailure-298] _ = x[ErrEvaluatorInvalidArguments-299] _ = x[ErrIntegerOverflow-300] _ = x[ErrLikeInvalidInputs-301] _ = x[ErrCastFailed-302] _ = x[ErrInvalidCast-303] _ = x[ErrEvaluatorInvalidTimestampFormatPattern-304] _ = x[ErrEvaluatorInvalidTimestampFormatPatternSymbolForParsing-305] _ = x[ErrEvaluatorTimestampFormatPatternDuplicateFields-306]
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 16 07:34:24 GMT 2025 - 21.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
MockResponse( code = 302, headers = headersOf("Location", "/b"), body = "A", ), ) server.enqueue(MockResponse(body = "B")) client = client .newBuilder() .followRedirects(false) .build() executeSynchronously("/a") .assertBody("A") .assertCode(302) } @Test
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 146.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt
* Invoked when OkHttp decides whether to perform a follow-up request. * * The network response's status code is most influential when deciding how to follow up: * * * For redirects (301: Moved Permanently, 302: Temporary Redirect, etc.) * * For auth challenges (401: Unauthorized, 407: Proxy Authentication Required.) * * For client timeouts (408: Request Time-Out.) * * For server failures (503: Service Unavailable.) *
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Oct 07 21:03:04 GMT 2025 - 24.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt
} @Test fun foundCachedWithExpiresHeader() { temporaryRedirectCachedWithCachingHeader(302, "Expires", formatDate(1, TimeUnit.HOURS)) } @Test fun foundCachedWithCacheControlHeader() { temporaryRedirectCachedWithCachingHeader(302, "Cache-Control", "max-age=60") } @Test fun temporaryRedirectCachedWithExpiresHeader() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Mar 20 09:13:37 GMT 2026 - 121K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
val redirectUrl = "http://host\u0000/" server.enqueue( MockResponse .Builder() .code(302) .addHeaderLenient("Location", redirectUrl) .build(), ) val response = getResponse(newRequest("/")) assertThat(response.code).isEqualTo(302) assertThat(response.header("Location")).isEqualTo(redirectUrl) } @Test fun urlWithBadAsciiHost() {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 133.3K bytes - Click Count (0)