Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 17 for 302 (0.01 seconds)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Mar 20 09:13:37 GMT 2026
    - 121K bytes
    - Click Count (0)
  6. 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)
  7. tests/test_tutorial/test_additional_responses/test_tutorial004.py

                "paths": {
                    "/items/{item_id}": {
                        "get": {
                            "responses": {
                                "404": {"description": "Item not found"},
                                "302": {"description": "The item was moved"},
                                "403": {"description": "Not enough privileges"},
                                "200": {
                                    "description": "Successful Response",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 10:53:47 GMT 2026
    - 5.5K bytes
    - Click Count (0)
  8. doap_Maven.rdf

    maven/source/apache-maven-3.0.3-src.tar.gz Apache Maven 3.0.2 2011-01-12 3.0.2 http://archive.apache.org/dist/maven/binaries/apache-maven-3.0.2-bin.zip http://archive.apache.org/dist/maven/binaries/apache-maven-3.0.2-bin.tar.gz http://archive.apache.org/dist/maven/source/apache-maven-3.0.2-src.zip http://archive.apache.org/dist/maven/source/apache-maven-3.0.2-src.tar.gz Apache Maven 3.0.1 2010-11-23 3.0.1 http://archive.apache.org/dist/maven/binaries/apache-maven-3.0.1-bin.zip http://archive.apa...
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Mar 14 15:05:35 GMT 2026
    - 38K bytes
    - Click Count (0)
  9. ci/official/requirements_updater/numpy1_requirements/requirements_lock_3_10.txt

    markdown-it-py==3.0.0 \
        --hash=sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1 \
        --hash=sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb
        # via rich
    markupsafe==3.0.2 \
        --hash=sha256:0bff5e0ae4ef2e1ae4fdf2dfd5b76c75e5c2fa4132d05fc1b0dabcd20c7e28c4 \
        --hash=sha256:0f4ca02bea9a23221c0182836703cbf8930c5e9454bacce27e767509fa286a30 \
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Mon Mar 30 19:02:40 GMT 2026
    - 66.1K bytes
    - Click Count (0)
  10. ci/official/requirements_updater/numpy1_requirements/requirements_lock_3_12.txt

    markdown-it-py==3.0.0 \
        --hash=sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1 \
        --hash=sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb
        # via rich
    markupsafe==3.0.2 \
        --hash=sha256:0bff5e0ae4ef2e1ae4fdf2dfd5b76c75e5c2fa4132d05fc1b0dabcd20c7e28c4 \
        --hash=sha256:0f4ca02bea9a23221c0182836703cbf8930c5e9454bacce27e767509fa286a30 \
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Mon Mar 30 19:02:40 GMT 2026
    - 66.1K bytes
    - Click Count (0)
Back to Top