Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 990 for status (0.05 sec)

  1. docs/zh/docs/tutorial/path-operation-configuration.md

    `status_code` 用于定义*路径操作*响应中的 HTTP 状态码。
    
    可以直接传递 `int` 代码, 比如 `404`。
    
    如果记不住数字码的涵义,也可以用 `status` 的快捷常量:
    
    {* ../../docs_src/path_operation_configuration/tutorial001.py hl[3,17] *}
    
    状态码在响应中使用,并会被添加到 OpenAPI 概图。
    
    /// note | 技术细节
    
    也可以使用 `from starlette import status` 导入状态码。
    
    **FastAPI** 的`fastapi.status` 和 `starlette.status` 一样,只是快捷方式。实际上,`fastapi.status` 直接继承自 Starlette。
    
    ///
    
    ## `tags` 参数
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ResponseData.java

        /**
         * Gets the processing status of this response.
         *
         * @return the processing status
         */
        public int getStatus() {
            return status;
        }
    
        /**
         * Sets the processing status of this response.
         *
         * @param status the processing status to set
         */
        public void setStatus(final int status) {
            this.status = status;
        }
    
        /**
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/dict/mapping/ApiAdminDictMappingAction.java

        }
    
        /**
         * Upload character mapping file for the specified dictionary.
         *
         * @param dictId identifier of the dictionary to upload mapping for
         * @param form upload form containing the file and metadata
         * @return JSON response indicating the API result status
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/role/ApiAdminRoleAction.java

                    new ApiResult.ApiConfigsResponse<EditBody>().settings(list.stream().map(this::createEditBody).collect(Collectors.toList()))
                            .total(pager.getAllRecordCount())
                            .status(ApiResult.Status.OK)
                            .result());
        }
    
        /**
         * Retrieves a specific role setting by ID.
         *
         * @param id the ID of the role setting to retrieve
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 7K bytes
    - Viewed (0)
  5. tests/test_repeated_dependency_schema.py

        assert response.status_code == status.HTTP_200_OK
        actual_schema = response.json()
        assert actual_schema == schema
        assert (
            len(actual_schema["paths"]["/"]["get"]["parameters"]) == 1
        )  # primary goal of this test
    
    
    def test_response():
        response = client.get("/", headers={"someheader": "hello"})
        assert response.status_code == status.HTTP_200_OK
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Mar 06 12:18:57 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/labeltype/ApiAdminLabeltypeAction.java

                    new ApiResult.ApiConfigsResponse<EditBody>().settings(list.stream().map(this::createEditBody).collect(Collectors.toList()))
                            .total(pager.getAllRecordCount())
                            .status(ApiResult.Status.OK)
                            .result());
        }
    
        /**
         * Retrieves a specific label type setting by ID.
         *
         * @param id the ID of the label type setting to retrieve
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

    package jcifs.smb;
    
    import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertSame;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.ArgumentMatchers.any;
    import static org.mockito.ArgumentMatchers.anyInt;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  8. cmd/bucket-lifecycle_test.go

    			expectedErr: errInvalidStorageClass,
    		},
    		{
    			// no transition rule
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue May 31 09:57:57 UTC 2022
    - 7K bytes
    - Viewed (0)
  9. tests/test_dependency_yield_scope.py

            assert response.status_code == 200
            assert response.json() == {"status": "ok"}
    
    
    def test_app_level_dep_scope_function() -> None:
        app = FastAPI(dependencies=[Depends(raise_after_yield, scope="function")])
    
        @app.get("/app-scope-function")
        def get_app_scope_function():
            return {"status": "ok"}
    
        with TestClient(app) as client:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/searchlist/ApiAdminSearchlistAction.java

            body.initialize();
            try {
                searchHelper.search(body, renderData, getUserBean());
                return asJson(new ApiDocsResponse().renderData(renderData).status(Status.OK).result());
            } catch (final InvalidQueryException e) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Invalid query: {}", body.q, e);
                }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 12.2K bytes
    - Viewed (0)
Back to top