Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1011 - 1020 of 6,186 for classe (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

          result = 31 * result + hash.hashCode()
          return result
        }
      }
    
      /** Builds a configured certificate pinner. */
      class Builder {
        val pins = mutableListOf<Pin>()
    
        /**
         * Pins certificates for `pattern`.
         *
         * @param pattern lower-case host name or wildcard pattern such as `*.example.com`.
         * @param pins SHA-256 or SHA-1 hashes. Each pin is a hash of a certificate's Subject Public Key
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  6. 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)
  7. guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapTestSuiteBuilder.java

      }
    
      @SuppressWarnings("rawtypes") // class literals
      @Override
      protected List<Class<? extends AbstractTester>> getTesters() {
        List<Class<? extends AbstractTester>> testers = copyToList(super.getTesters());
        testers.add(SetMultimapAsMapTester.class);
        testers.add(SetMultimapEqualsTester.class);
        testers.add(SetMultimapPutTester.class);
        testers.add(SetMultimapPutAllTester.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. src/main/webapp/WEB-INF/view/searchResults.jsp

    					</c:if>
    					<c:if test="${favoriteSupport}">
    						<div class="d-sm-none"></div>
    						<span class="d-none d-sm-inline">&nbsp;</span>
    						<a href="#${doc.doc_id}" class="favorite"><i class="far fa-star"></i></a>
    						<span class="favorited"><i class="fas fa-star"></i></span>
    					</c:if>
    				</div>
    			</li>
    		</c:forEach>
    	</ol>
    	<aside class="col-md-4 d-none d-md-block">
    		<%-- Side Content --%>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jun 09 04:29:42 UTC 2022
    - 9K bytes
    - Viewed (0)
  9. src/main/webapp/WEB-INF/view/admin/dict/stemmeroverride/admin_dict_stemmeroverride.jsp

                <div class="container-fluid">
                    <div class="row mb-2">
                        <div class="col-sm-6">
                            <h1>
                                <la:message key="labels.dict_stemmeroverride_title"/>
                            </h1>
                        </div>
                        <div class="col-sm-6">
                            <ol class="breadcrumb float-sm-right">
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 13 07:47:04 UTC 2020
    - 10.2K bytes
    - Viewed (0)
  10. schema/constraint.go

    }
    
    // ParseCheckConstraints parse schema check constraints
    func (schema *Schema) ParseCheckConstraints() map[string]CheckConstraint {
    	checks := map[string]CheckConstraint{}
    	for _, field := range schema.FieldsByDBName {
    		if chk := field.TagSettings["CHECK"]; chk != "" {
    			names := strings.Split(chk, ",")
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Mar 18 07:33:54 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top