Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for 204 (0.04 sec)

  1. tests/test_starlette_exception.py

    
    @app.get("/http-no-body-statuscode-exception")
    async def no_body_status_code_exception():
        raise HTTPException(status_code=204)
    
    
    @app.get("/http-no-body-statuscode-with-detail-exception")
    async def no_body_status_code_with_detail_exception():
        raise HTTPException(status_code=204, detail="I should just disappear!")
    
    
    @app.get("/starlette-items/{item_id}")
    async def read_starlette_item(item_id: str):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  2. tests/test_response_code_no_body.py

    
    class JsonApiError(BaseModel):
        errors: typing.List[Error]
    
    
    @app.get(
        "/a",
        status_code=204,
        response_class=JsonApiResponse,
        responses={500: {"description": "Error", "model": JsonApiError}},
    )
    async def a():
        pass
    
    
    @app.get("/b", responses={204: {"description": "No Content"}})
    async def b():
        pass  # pragma: no cover
    
    
    client = TestClient(app)
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CallKotlinTest.kt

            sink.writeUtf8("<element/>")
            sink.flush()
          }
        }
    
        server.enqueue(MockResponse(code = 201))
        server.enqueue(MockResponse(code = 204))
        server.enqueue(MockResponse(code = 204))
    
        val endpointUrl = server.url("/endpoint")
    
        var request =
          Request.Builder()
            .url(endpointUrl)
            .header("Content-Type", "application/xml")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. tests/test_reponse_set_reponse_code_empty.py

    from typing import Any
    
    from fastapi import FastAPI, Response
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    @app.delete(
        "/{id}",
        status_code=204,
        response_model=None,
    )
    async def delete_deployment(
        id: int,
        response: Response,
    ) -> Any:
        response.status_code = 400
        return {"msg": "Status overwritten", "id": id}
    
    
    client = TestClient(app)
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. src/test/resources/plugin/repo3/fess-crawler-parent/maven-metadata.xml

          <version>1.5.7</version>
          <version>1.5.8</version>
          <version>2.0.0</version>
          <version>2.0.1</version>
          <version>2.0.2</version>
          <version>2.0.3</version>
          <version>2.0.4</version>
          <version>2.1.0</version>
          <version>2.1.1</version>
          <version>2.1.2</version>
          <version>2.1.3</version>
          <version>2.1.4</version>
          <version>2.2.0</version>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jun 17 13:30:41 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. src/test/resources/plugin/repo3/fess-crawler/maven-metadata.xml

          <version>1.5.7</version>
          <version>1.5.8</version>
          <version>2.0.0</version>
          <version>2.0.1</version>
          <version>2.0.2</version>
          <version>2.0.3</version>
          <version>2.0.4</version>
          <version>2.1.0</version>
          <version>2.1.1</version>
          <version>2.1.2</version>
          <version>2.1.3</version>
          <version>2.1.4</version>
          <version>2.2.0</version>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jun 17 13:30:41 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. kotlin-js-store/yarn.lock

      dependencies:
        once "^1.3.0"
        wrappy "1"
    
    inherits@2, inherits@2.0.4:
      version "2.0.4"
      resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
      integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
    
    interpret@^3.1.1:
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jul 22 12:28:51 UTC 2023
    - 87.4K bytes
    - Viewed (0)
  8. src/test/resources/plugin/repo3/fess-crawler-webdriver/maven-metadata.xml

          <version>1.5.7</version>
          <version>1.5.8</version>
          <version>2.0.0</version>
          <version>2.0.1</version>
          <version>2.0.2</version>
          <version>2.0.3</version>
          <version>2.0.4</version>
          <version>2.1.0</version>
          <version>2.1.1</version>
          <version>2.1.2</version>
          <version>2.1.3</version>
          <version>2.1.4</version>
          <version>2.2.0</version>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jun 17 13:30:41 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt

        }
      }
    
      @Test
      fun testSkipUncompressNoContentResponse() {
        val response =
          response("https://httpbin.org/brotli", EMPTY) {
            header("Content-Encoding", "br")
            code(204)
            message("NO CONTENT")
          }
    
        val same = uncompress(response)
    
        val responseString = same.body.string()
        assertThat(responseString).isEmpty()
      }
    
      private fun response(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. src/test/resources/plugin/repo3/fess-crawler-lasta/maven-metadata.xml

          <version>1.5.7</version>
          <version>1.5.8</version>
          <version>2.0.0</version>
          <version>2.0.1</version>
          <version>2.0.2</version>
          <version>2.0.3</version>
          <version>2.0.4</version>
          <version>2.1.0</version>
          <version>2.1.1</version>
          <version>2.1.2</version>
          <version>2.1.3</version>
          <version>2.1.4</version>
          <version>2.2.0</version>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jun 17 13:30:41 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top