Search Options

Results per page
Sort
Preferred Languages
Advance

Results 321 - 330 of 1,402 for result2 (0.07 sec)

  1. docs_src/query_params_str_validations/tutorial007.py

    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: Union[str, None] = Query(default=None, title="Query string", min_length=3),
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 336 bytes
    - Viewed (0)
  2. docs_src/path_params_numeric_validations/tutorial002_an_py39.py

    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(
        q: str, item_id: Annotated[int, Path(title="The ID of the item to get")]
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 311 bytes
    - Viewed (0)
  3. docs_src/path_params_numeric_validations/tutorial003_an_py39.py

    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(
        item_id: Annotated[int, Path(title="The ID of the item to get")], q: str
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 311 bytes
    - Viewed (0)
  4. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/scopes/Maven3ScopeManagerConfiguration.java

            ArrayList<DependencyScope> result = new ArrayList<>();
            result.add(internalScopeManager.createDependencyScope(DS_COMPILE, true, all()));
            result.add(internalScopeManager.createDependencyScope(
                    DS_RUNTIME, true, byBuildPath(CommonBuilds.BUILD_PATH_RUNTIME)));
            result.add(internalScopeManager.createDependencyScope(
                    DS_PROVIDED,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. docs_src/query_params_str_validations/tutorial002_an.py

    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: Annotated[Union[str, None], Query(max_length=50)] = None):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 351 bytes
    - Viewed (0)
  6. docs_src/query_params_str_validations/tutorial004.py

    @app.get("/items/")
    async def read_items(
        q: Union[str, None] = Query(
            default=None, min_length=3, max_length=50, pattern="^fixedquery$"
        ),
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 367 bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

      require(readByte() == '\"'.code.toByte())
      val result = Buffer()
      while (true) {
        val i = indexOfElement(QUOTED_STRING_DELIMITERS)
        if (i == -1L) return null // Unterminated quoted string.
    
        if (this[i] == '"'.code.toByte()) {
          result.write(this, i)
          // Consume '"'.
          readByte()
          return result.readUtf8()
        }
    
        if (size == i + 1L) return null // Dangling escape.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/misc/Tuple5.java

            final int prime = 31;
            int result = 1;
            result = prime * result + ((value1 == null) ? 0 : value1.hashCode());
            result = prime * result + ((value2 == null) ? 0 : value2.hashCode());
            result = prime * result + ((value3 == null) ? 0 : value3.hashCode());
            result = prime * result + ((value4 == null) ? 0 : value4.hashCode());
            result = prime * result + ((value5 == null) ? 0 : value5.hashCode());
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/ArtifactTransferEvent.java

        public int hashCode() {
            final int prime = 31;
            int result = 1;
            result = prime * result + eventType;
            result = prime * result + ((exception == null) ? 0 : exception.hashCode());
            result = prime * result + ((localFile == null) ? 0 : localFile.hashCode());
            result = prime * result + requestType;
            return result;
        }
    
        public boolean equals(Object obj) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/collect/StreamsBenchmark.java

          collection.add(new Object());
        }
      }
    
      @Benchmark
      int runOperation(int reps) {
        int result = 0;
        for (int i = 0; i < reps; i++) {
          result += System.identityHashCode(operation.operate(collection.stream()));
        }
        return result;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top