Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2111 - 2120 of 2,162 for classic (0.09 seconds)

  1. fastapi/dependencies/utils.py

            return True
        elif lenient_issubclass(type_annotation, SecurityScopes):
            dependant.security_scopes_param_name = param_name
            return True
        return None
    
    
    @dataclass
    class ParamDetails:
        type_annotation: Any
        depends: Optional[params.Depends]
        field: Optional[ModelField]
    
    
    def analyze_param(
        *,
        param_name: str,
        annotation: Any,
        value: Any,
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 37.6K bytes
    - Click Count (3)
  2. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

    import org.junit.jupiter.api.AfterEach;
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    import jcifs.smb.SmbException;
    
    /**
     * Test cases for AuthenticationRateLimiter
     */
    public class AuthenticationRateLimiterTest {
    
        private AuthenticationRateLimiter rateLimiter;
    
        @BeforeEach
        public void setUp() {
            // Create rate limiter with test-friendly settings
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  3. docs/zh/docs/tutorial/handling-errors.md

    /// warning | 警告
    
    如果您觉得现在还用不到以下技术细节,可以先跳过下面的内容。
    
    ///
    
    `RequestValidationError` 是 Pydantic 的 <a href="https://docs.pydantic.dev/latest/concepts/models/#error-handling" class="external-link" target="_blank">`ValidationError`</a> 的子类。
    
    **FastAPI** 调用的就是 `RequestValidationError` 类,因此,如果在 `response_model` 中使用 Pydantic 模型,且数据有错误时,在日志中就会看到这个错误。
    
    但客户端或用户看不到这个错误。反之,客户端接收到的是 HTTP 状态码为 `500` 的「内部服务器错误」。
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  4. tests/test_schema_extra_examples.py

    from fastapi.exceptions import FastAPIDeprecationWarning
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, ConfigDict
    
    
    def create_app():
        app = FastAPI()
    
        class Item(BaseModel):
            data: str
    
            model_config = ConfigDict(
                json_schema_extra={"example": {"data": "Data in schema_extra"}}
            )
    
        @app.post("/schema_extra/")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 32.2K bytes
    - Click Count (0)
  5. LICENSE

          replaced with your own identifying information. (Don't include
          the brackets!)  The text should be enclosed in the appropriate
          comment syntax for the file format. We also recommend that a
          file or class name and description of purpose be included on the
          same "printed page" as the copyright notice for easier
          identification within third-party archives.
    
       Copyright [yyyy] [name of copyright owner]
    
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Tue May 08 21:35:34 GMT 2018
    - 11.1K bytes
    - Click Count (0)
  6. LICENSE

          replaced with your own identifying information. (Don't include
          the brackets!)  The text should be enclosed in the appropriate
          comment syntax for the file format. We also recommend that a
          file or class name and description of purpose be included on the
          same "printed page" as the copyright notice for easier
          identification within third-party archives.
    
       Copyright [yyyy] [name of copyright owner]
    
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Mon Jan 11 04:30:09 GMT 2021
    - 11.1K bytes
    - Click Count (0)
  7. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/AbstractModelInterpolatorTest.java

    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     */
    @Deprecated
    public abstract class AbstractModelInterpolatorTest {
        private Properties context;
    
        @BeforeEach
        public void setUp() {
            context = new Properties();
            context.put("basedir", "myBasedir");
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sun Mar 30 23:08:36 GMT 2025
    - 18.2K bytes
    - Click Count (0)
  8. docs/zh/docs/tutorial/security/simple-oauth2.md

    实际上,忽略这个附加响应头,也不会有什么问题。
    
    之所以在此提供这个附加响应头,是为了符合规范的要求。
    
    说不定什么时候,就有工具用得上它,而且,开发者或用户也可能用得上。
    
    这就是遵循标准的好处……
    
    ///
    
    ## 实际效果
    
    打开 API 文档:<a href="http://127.0.0.1:8000/docs" class="external-link" target="_blank">http://127.0.0.1:8000/docs</a>。
    
    ### 身份验证
    
    点击**Authorize**按钮。
    
    使用以下凭证:
    
    用户名:`johndoe`
    
    密码:`secret`
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 8.6K bytes
    - Click Count (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/SitemapsHelperTest.java

    /**
     * @author shinsuke
     *
     */
    public class SitemapsHelperTest extends PlainTestCase {
        public SitemapsHelper sitemapsHelper;
    
        @Override
        protected void setUp() throws Exception {
            super.setUp();
            StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("sitemapsHelper", SitemapsHelper.class);
            sitemapsHelper = container.getComponent("sitemapsHelper");
        }
    
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 36.7K bytes
    - Click Count (0)
  10. build-logic/cleanup/src/test/groovy/gradlebuild/cleanup/services/LeakingProcessKillPatternTest.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package gradlebuild.cleanup.services
    
    import spock.lang.Specification
    
    class LeakingProcessKillPatternTest extends Specification {
    
        def "matches worker process started in test on Windows"() {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Jul 12 03:42:46 GMT 2024
    - 14.8K bytes
    - Click Count (0)
Back to Top