Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 578 for Here (0.12 sec)

  1. docs_src/response_model/tutorial003_04_py310.py

    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")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 10 16:22:47 GMT 2023
    - 352 bytes
    - Viewed (0)
  2. docs_src/response_model/tutorial003_02.py

    
    @app.get("/portal")
    async def get_portal(teleport: bool = False) -> Response:
        if teleport:
            return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 10 16:22:47 GMT 2023
    - 381 bytes
    - Viewed (0)
  3. .teamcity/src/test/kotlin/common.kt

    import jetbrains.buildServer.configs.kotlin.AbsoluteId
    import jetbrains.buildServer.configs.kotlin.DslContext
    
    fun DslContext.initForTest() {
        // Set the project id here, so we can use methods on the DslContext
        parentProjectId = AbsoluteId("Gradle")
        projectId = AbsoluteId("Gradle_Master")
        settingsRootId = AbsoluteId("GradleMaster")
        settingsRoot.name = "GradleMaster"
        addParameters("Branch" to "master")
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Tue Dec 05 00:08:14 GMT 2023
    - 430 bytes
    - Viewed (0)
  4. docs_src/custom_response/tutorial002.py

    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    
    @app.get("/items/", response_class=HTMLResponse)
    async def read_items():
        return """
        <html>
            <head>
                <title>Some HTML in here</title>
            </head>
            <body>
                <h1>Look ma! HTML!</h1>
            </body>
        </html>
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 352 bytes
    - Viewed (0)
  5. docs_src/response_model/tutorial003_05.py

    @app.get("/portal", response_model=None)
    async def get_portal(teleport: bool = False) -> Union[Response, dict]:
        if teleport:
            return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 10 16:22:47 GMT 2023
    - 405 bytes
    - Viewed (0)
  6. docs/en/docs/how-to/async-sql-encode-databases.md

        Notice that all this code is pure SQLAlchemy Core.
    
        `databases` is not doing anything here yet.
    
    ## Import and set up `databases`
    
    * Import `databases`.
    * Create a `DATABASE_URL`.
    * Create a `database` object.
    
    ```Python hl_lines="3  9  12"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    !!! tip
        If you were connecting to a different database (e.g. PostgreSQL), you would need to change the `DATABASE_URL`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  7. .github/ISSUE_TEMPLATE/bug_report.md

    ---
    
    Good bug reports include a failing test! Writing a test helps you to isolate and describe the problem, and it helps us to fix it fast. Bug reports without a failing test or reproduction steps are likely to be closed.
    
    Here’s an example test to get you started.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 30 22:44:40 GMT 2018
    - 412 bytes
    - Viewed (0)
  8. docs/en/docs/reference/apirouter.md

    # `APIRouter` class
    
    Here's the reference information for the `APIRouter` class, with all its parameters, attributes and methods.
    
    You can import the `APIRouter` class directly from `fastapi`:
    
    ```python
    from fastapi import APIRouter
    ```
    
    ::: fastapi.APIRouter
        options:
            members:
                - websocket
                - include_router
                - get
                - put
                - post
                - delete
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 524 bytes
    - Viewed (0)
  9. istioctl/pkg/writer/ztunnel/configdump/workload.go

    		return svc.Name
    	}
    
    	return "NA" // Shouldn't normally reach here
    }
    
    func serviceWaypointName(svc *ZtunnelService, services map[string]*ZtunnelService) string {
    	if svc.Waypoint == nil {
    		return "None"
    	}
    
    	if svc, ok := services[svc.Waypoint.Destination]; ok {
    		return svc.Name
    	}
    
    	return "NA" // Shouldn't normally reach here
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 4K bytes
    - Viewed (0)
  10. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleJavadocsPlugin.java

    import gradlebuild.basics.BuildEnvironment;
    
    import javax.inject.Inject;
    import java.io.File;
    
    /**
     * Generates Javadocs in a particular way.
     *
     * TODO: We should remove the workarounds here and migrate some of the changes here into the Javadoc task proper.
     */
    public abstract class GradleJavadocsPlugin implements Plugin<Project> {
    
        @Inject
        protected abstract FileSystemOperations getFs();
    
        @Override
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Oct 16 13:03:20 GMT 2023
    - 6.9K bytes
    - Viewed (0)
Back to top