- Sort Score
- Result 10 results
- Languages All
Results 641 - 650 of 7,612 for class (0.08 sec)
-
tests/test_additional_responses_custom_validationerror.py
from fastapi.responses import JSONResponse from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() class JsonApiResponse(JSONResponse): media_type = "application/vnd.api+json" class Error(BaseModel): status: str title: str class JsonApiError(BaseModel): errors: typing.List[Error] @app.get( "/a/{id}", response_class=JsonApiResponse,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
setDefault(Integer.class, 1); setDefault(long.class, 1L); setDefault(Long.class, 1L); setDefault(float.class, 1F); setDefault(Float.class, 1F); setDefault(double.class, 1D); setDefault(Double.class, 1D); setDefault(Class.class, Class.class); } /** * Sets the default value for {@code type}. The default value isn't used in testing {@link
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:18:12 UTC 2024 - 32.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/InvokableTest.java
Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); ImmutableList<Parameter> parameters = delegate.getParameters(); assertEquals(2, parameters.size()); assertEquals(String.class, parameters.get(0).getType().getType()); assertTrue(parameters.get(0).isAnnotationPresent(NotBlank.class)); assertEquals(int.class, parameters.get(1).getType().getType());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 30.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/InvokableTest.java
Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); ImmutableList<Parameter> parameters = delegate.getParameters(); assertEquals(2, parameters.size()); assertEquals(String.class, parameters.get(0).getType().getType()); assertTrue(parameters.get(0).isAnnotationPresent(NotBlank.class)); assertEquals(int.class, parameters.get(1).getType().getType());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 30.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSequenceReaderTest.java
assertThrows(IOException.class, () -> reader.read(new char[10], 0, 10)); assertThrows(IOException.class, () -> reader.read(CharBuffer.allocate(10))); assertThrows(IOException.class, () -> reader.skip(10)); assertThrows(IOException.class, () -> reader.ready()); assertThrows(IOException.class, () -> reader.mark(10)); assertThrows(IOException.class, () -> reader.reset()); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 6.5K bytes - Viewed (0) -
docs/zh/docs/tutorial/path-params.md
运行示例并访问 <a href="http://127.0.0.1:8000/items/3" class="external-link" target="_blank">http://127.0.0.1:8000/items/3</a>,返回的响应如下: ```JSON {"item_id":3} ``` /// check | "检查" 注意,函数接收并返回的值是 `3`( `int`),不是 `"3"`(`str`)。 **FastAPI** 通过类型声明自动<abbr title="将来自 HTTP 请求中的字符串转换为 Python 数据类型">**解析**请求中的数据</abbr>。 /// ## 数据校验
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/GcFinalization.java
* } * public void testFooLeak() { * GcFinalization.awaitClear(fooWeakRef()); * } * }</pre> * * <p>This class cannot currently be used to test soft references, since this class does not try to * create the memory pressure required to cause soft references to be cleared. * * <p>This class only provides testing utilities. It is not designed for direct use in production or * for benchmarking. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 11.6K bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/admin/duplicatehost/admin_duplicatehost_details.jsp
<div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1> <la:message key="labels.duplicate_host_title_details"/> </h1> </div> <div class="col-sm-6"> <jsp:include page="/WEB-INF/view/common/admin/crud/breadcrumb.jsp"></jsp:include>
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 13 07:47:04 UTC 2020 - 4.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt
* certificate authorities. It also prevents connections through man-in-the-middle certificate * authorities either known or unknown to the application's user. * This class currently pins a certificate's Subject Public Key Info as described on * [Adam Langley's Weblog][langley]. Pins are either base64 SHA-256 hashes as in * [HTTP Public Key Pinning (HPKP)][rfc_7469] or SHA-1 base64 hashes as in Chromium's
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 14.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java
this.map = newHashMap(); this.unusableDelegate = (SetMultimap<K, V>) newProxyInstance( SetMultimap.class.getClassLoader(), new Class<?>[] {SetMultimap.class}, new InvocationHandler() { @Override public Object invoke(Object proxy, Method method, Object[] args)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 28.7K bytes - Viewed (0)