Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 109 for HTMLResponse (0.06 sec)

  1. fastapi/openapi/docs.py

        </noscript>
        <redoc spec-url="{openapi_url}"></redoc>
        <script src="{redoc_js_url}"> </script>
        </body>
        </html>
        """
        return HTMLResponse(html)
    
    
    def get_swagger_ui_oauth2_redirect_html() -> HTMLResponse:
        """
        Generate the HTML response with the OAuth2 redirection for Swagger UI.
    
        You normally don't need to use or change this.
        """
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  2. docs/ru/docs/advanced/custom-response.md

    `ORJSONResponse` доступен только в FastAPI, а не в Starlette.
    
    ///
    
    ## HTML-ответ { #html-response }
    
    Чтобы вернуть ответ с HTML напрямую из **FastAPI**, используйте `HTMLResponse`.
    
    - Импортируйте `HTMLResponse`.
    - Передайте `HTMLResponse` в параметр `response_class` вашего декоратора операции пути.
    
    {* ../../docs_src/custom_response/tutorial002_py39.py hl[2,7] *}
    
    /// info | Информация
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/help/HelpAction.java

         * form parameters and rendering data for the help page display.
         *
         * @return HtmlResponse containing the rendered help page or redirect to login if authentication is required
         */
        @Execute
        public HtmlResponse index() {
            if (isLoginRequired()) {
                return redirectToLogin();
            }
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/error/ErrorNotfoundAction.java

     */
    package org.codelibs.fess.app.web.error;
    
    import org.codelibs.fess.app.web.base.FessSearchAction;
    import org.lastaflute.web.Execute;
    import org.lastaflute.web.response.HtmlResponse;
    
    /**
     * Action class for handling HTTP 404 Not Found error pages.
     * This action displays error pages when the requested resource
     * cannot be found on the server.
     */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/dashboard/AdminDashboardAction.java

    import org.codelibs.fess.api.engine.SearchEngineApiManager;
    import org.codelibs.fess.app.web.base.FessAdminAction;
    import org.codelibs.fess.util.RenderDataUtil;
    import org.lastaflute.web.Execute;
    import org.lastaflute.web.response.HtmlResponse;
    import org.lastaflute.web.ruts.process.ActionRuntime;
    
    import jakarta.annotation.Resource;
    
    /**
     * Admin action for Dashboard.
     *
     */
    public class AdminDashboardAction extends FessAdminAction {
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/base/FessLoginAction.java

    import org.codelibs.fess.app.web.admin.AdminAction;
    import org.codelibs.fess.app.web.admin.dashboard.AdminDashboardAction;
    import org.codelibs.fess.mylasta.action.FessUserBean;
    import org.lastaflute.web.response.HtmlResponse;
    
    /**
     * Abstract base action class for handling login functionality in Fess.
     * This action provides logic for redirecting authenticated users to appropriate
     * admin interfaces based on their roles and permissions.
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  7. fastapi/responses.py

    from typing import Any
    
    from starlette.responses import FileResponse as FileResponse  # noqa
    from starlette.responses import HTMLResponse as HTMLResponse  # noqa
    from starlette.responses import JSONResponse as JSONResponse  # noqa
    from starlette.responses import PlainTextResponse as PlainTextResponse  # noqa
    from starlette.responses import RedirectResponse as RedirectResponse  # noqa
    from starlette.responses import Response as Response  # noqa
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Oct 18 12:36:40 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. docs_src/request_files/tutorial002_py39.py

    from fastapi import FastAPI, File, UploadFile
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_files(files: list[bytes] = File()):
        return {"file_sizes": [len(file) for file in files]}
    
    
    @app.post("/uploadfiles/")
    async def create_upload_files(files: list[UploadFile]):
        return {"filenames": [file.filename for file in files]}
    
    
    @app.get("/")
    async def main():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 786 bytes
    - Viewed (0)
  9. docs/pt/docs/advanced/custom-response.md

    A `ORJSONResponse` está disponível apenas no FastAPI, e não no Starlette.
    
    ///
    
    ## Resposta HTML { #html-response }
    
    Para retornar uma resposta com HTML diretamente do **FastAPI**, utilize `HTMLResponse`.
    
    * Importe `HTMLResponse`
    * Passe `HTMLResponse` como o parâmetro de `response_class` do seu *decorador de operação de rota*.
    
    {* ../../docs_src/custom_response/tutorial002_py39.py hl[2,7] *}
    
    /// info | Informação
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  10. docs_src/request_files/tutorial003_an_py39.py

    from typing import Annotated
    
    from fastapi import FastAPI, File, UploadFile
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_files(
        files: Annotated[list[bytes], File(description="Multiple files as bytes")],
    ):
        return {"file_sizes": [len(file) for file in files]}
    
    
    @app.post("/uploadfiles/")
    async def create_upload_files(
        files: Annotated[
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 952 bytes
    - Viewed (0)
Back to top