Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 109 for HTMLResponse (0.05 sec)

  1. docs/es/docs/advanced/custom-response.md

    El `ORJSONResponse` solo está disponible en FastAPI, no en Starlette.
    
    ///
    
    ## Response HTML { #html-response }
    
    Para devolver un response con HTML directamente desde **FastAPI**, usa `HTMLResponse`.
    
    * Importa `HTMLResponse`.
    * Pasa `HTMLResponse` como parámetro `response_class` de tu *path operation decorator*.
    
    {* ../../docs_src/custom_response/tutorial002_py39.py hl[2,7] *}
    
    /// info | Información
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  2. docs_src/request_files/tutorial002_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()]):
        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]}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 826 bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/wizard/AdminWizardAction.java

         * Displays the wizard index page.
         *
         * @return HTML response for the wizard main page
         */
        @Execute
        @Secured({ ROLE, ROLE + VIEW })
        public HtmlResponse index() {
            return asIndexHtml();
        }
    
        private HtmlResponse asIndexHtml() {
            return asHtml(path_AdminWizard_AdminWizardJsp).useForm(IndexForm.class);
        }
    
        /**
         * Displays the crawling configuration form.
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Dec 11 09:47:03 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/profile/ProfileAction.java

         *
         * @return the HTML response
         */
        @Execute
        public HtmlResponse index() {
            return asIndexHtml();
        }
    
        /**
         * Changes the user password.
         *
         * @param form the profile form
         * @return the HTML response
         */
        @Execute
        public HtmlResponse changePassword(final ProfileForm form) {
            final VaErrorHook toIndexPage = () -> {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 27 07:01:25 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/logout/LogoutAction.java

    import org.codelibs.fess.mylasta.action.FessUserBean;
    import org.codelibs.fess.util.ComponentUtil;
    import org.dbflute.optional.OptionalThing;
    import org.lastaflute.web.Execute;
    import org.lastaflute.web.response.HtmlResponse;
    
    /**
     * The logout action.
     */
    public class LogoutAction extends FessSearchAction {
    
        /**
         * Default constructor.
         */
        public LogoutAction() {
            super();
        }
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/error/ErrorBadrequrestAction.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 400 Bad Request error pages.
     * This action displays error pages when a client request contains
     * invalid syntax or cannot be fulfilled due to malformed request parameters.
     */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  7. docs_src/custom_response/tutorial002_py39.py

    from fastapi import FastAPI
    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>
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 352 bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/plugin/AdminPluginAction.java

        @Secured({ ROLE, ROLE + VIEW })
        public HtmlResponse index() {
            saveToken();
            return asListHtml();
        }
    
        /**
         * Deletes the specified plugin.
         *
         * @param form the delete form containing plugin information
         * @return HTML response redirecting to the plugin list
         */
        @Execute
        @Secured({ ROLE })
        public HtmlResponse delete(final DeleteForm form) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  9. docs_src/custom_response/tutorial003_py39.py

    from fastapi import FastAPI
    from fastapi.responses import HTMLResponse
    
    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: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 394 bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/search/SearchAction.java

         * @return The HTML response.
         */
        @Execute
        public HtmlResponse index(final SearchForm form) {
            return search(form);
        }
    
        /**
         * The advance search page.
         * @param form The search form.
         * @return The HTML response.
         */
        @Execute
        public HtmlResponse advance(final SearchForm form) {
            if (isLoginRequired()) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 14K bytes
    - Viewed (0)
Back to top