Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 839 for portVal (0.13 sec)

  1. docs_src/response_model/tutorial003_04_py310.py

    from fastapi.responses import RedirectResponse
    
    app = FastAPI()
    
    
    @app.get("/portal")
    async def get_portal(teleport: bool = False) -> Response | dict:
        if teleport:
            return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Jan 10 16:22:47 UTC 2023
    - 352 bytes
    - Viewed (0)
  2. docs_src/response_model/tutorial003_02.py

    from fastapi.responses import JSONResponse, RedirectResponse
    
    app = FastAPI()
    
    
    @app.get("/portal")
    async def get_portal(teleport: bool = False) -> Response:
        if teleport:
            return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Jan 10 16:22:47 UTC 2023
    - 381 bytes
    - Viewed (0)
  3. docs_src/dependencies/tutorial008c_an_py39.py

            print("Oops, we didn't raise again, Britney 😱")
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id == "portal-gun":
            raise InternalError(
                f"The portal gun is too dangerous to be owned by {username}"
            )
        if item_id != "plumbus":
            raise HTTPException(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 700 bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/tests/fold-constants-to-subgraph.mlir

    // PARTIAL:           %[[VAL_5:.*]] = "tfl.slice"(%[[VAL_0]], %[[VAL_4]], %[[VAL_3]]) : (tensor<4x384x32xf32>, tensor<3xi32>, tensor<3xi32>) -> tensor<1x384x32xf32>
    // PARTIAL:           return %[[VAL_5]] : tensor<1x384x32xf32>
    // PARTIAL:         }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/use/DeployedPortalIntegrationSpec.groovy

                }
            """
    
            then:
            succeeds("sub:helloWorld")
    
            and:
            output.contains("Hello World!")
    
        }
    
        def "can resolve and apply a plugin from portal"() {
            when:
            buildScript """
                plugins {
                    id "$HELLO_WORLD_PLUGIN_ID" version "$HELLO_WORLD_PLUGIN_VERSION"
                }
            """
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  6. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/ResolvingFromMultipleCustomPluginRepositorySpec.groovy

            repoType << [IVY, MAVEN]
        }
    
        def "Does not fall through to plugin portal if custom #repoType repos are defined"(String repoType) {
            given:
            publishPlugins(repoType)
            buildScript """
                plugins {
                    id "org.gradle.hello-world" version "0.2" //exits in the plugin portal
                }
            """
            use(repoA, repoB)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:30:55 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. releasenotes/notes/drop-legacy-partial-full-push.yaml

    John Howard <******@****.***> 1682620609 -0700
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 27 18:36:49 UTC 2023
    - 145 bytes
    - Viewed (0)
  8. tests/test_tutorial/test_dependencies/test_tutorial008c.py

        with pytest.raises(FastAPIError) as exc_info:
            client.get("/items/portal-gun")
        assert "No response object was returned" in exc_info.value.args[0]
    
    
    def test_internal_server_error():
        from docs_src.dependencies.tutorial008c import app
    
        client = TestClient(app, raise_server_exceptions=False)
        response = client.get("/items/portal-gun")
        assert response.status_code == 500, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_dependencies/test_tutorial008c_an_py39.py

        with pytest.raises(FastAPIError) as exc_info:
            client.get("/items/portal-gun")
        assert "No response object was returned" in exc_info.value.args[0]
    
    
    @needs_py39
    def test_internal_server_error():
        from docs_src.dependencies.tutorial008c_an_py39 import app
    
        client = TestClient(app, raise_server_exceptions=False)
        response = client.get("/items/portal-gun")
        assert response.status_code == 500, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  10. docs_src/dependencies/tutorial008c_an.py

            print("Oops, we didn't raise again, Britney 😱")
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id == "portal-gun":
            raise InternalError(
                f"The portal gun is too dangerous to be owned by {username}"
            )
        if item_id != "plumbus":
            raise HTTPException(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 710 bytes
    - Viewed (0)
Back to top