Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for htmlContent (0.11 sec)

  1. platforms/software/reporting/src/test/groovy/org/gradle/api/reporting/internal/BuildDashboardGeneratorSpec.groovy

                select('span[class=unavailable]').text() == 'c'
                select('a[href=htmlContent/index.html]').text() == 'd'
                select('a[href=simpleDirectory]').text() == 'e'
            }
        }
    
        void 'encodes output using utf-8'() {
            given:
            def htmlFolder = tmpDir.createDir('htmlContent');
            htmlFolder.createFile("index.html")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. docs_src/custom_response/tutorial003.py

    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items():
        html_content = """
        <html>
            <head>
                <title>Some HTML in here</title>
            </head>
            <body>
                <h1>Look ma! HTML!</h1>
            </body>
        </html>
        """
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 394 bytes
    - Viewed (0)
  3. docs_src/custom_response/tutorial004.py

    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    
    def generate_html_response():
        html_content = """
        <html>
            <head>
                <title>Some HTML in here</title>
            </head>
            <body>
                <h1>Look ma! HTML!</h1>
            </body>
        </html>
        """
        return HTMLResponse(content=html_content, status_code=200)
    
    
    @app.get("/items/", response_class=HTMLResponse)
    async def read_items():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 491 bytes
    - Viewed (0)
Back to top