Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2561 - 2570 of 4,517 for getA (0.27 seconds)

  1. guava/src/com/google/common/collect/FilteredKeyMultimap.java

      }
    
      @Override
      Set<K> createKeySet() {
        return Sets.filter(unfiltered.keySet(), keyPredicate);
      }
    
      @Override
      public Collection<V> get(@ParametricNullness K key) {
        if (keyPredicate.apply(key)) {
          return unfiltered.get(key);
        } else if (unfiltered instanceof SetMultimap) {
          return new AddRejectingSet<>(key);
        } else {
          return new AddRejectingList<>(key);
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  2. docs/zh-hant/docs/tutorial/response-status-code.md

    # 回應狀態碼 { #response-status-code }
    
    就像你可以指定回應模型一樣,你也可以在任一個「路徑操作(path operation)」的參數 `status_code` 中宣告回應所使用的 HTTP 狀態碼:
    
    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    * 等等
    
    {* ../../docs_src/response_status_code/tutorial001_py310.py hl[6] *}
    
    /// note | 注意
    
    請注意,`status_code` 是「裝飾器(decorator)」方法(`get`、`post` 等等)的參數,而不是你的「路徑操作函式」的參數,就像所有的參數與 body 一樣。
    
    ///
    
    參數 `status_code` 接受一個數字作為 HTTP 狀態碼。
    
    /// info | 資訊
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  3. docs_src/extra_models/tutorial003_py310.py

        "item2": {
            "description": "Music is my aeroplane, it's my aeroplane",
            "type": "plane",
            "size": 5,
        },
    }
    
    
    @app.get("/items/{item_id}", response_model=PlaneItem | CarItem)
    async def read_item(item_id: str):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 612 bytes
    - Click Count (0)
  4. docs_src/handling_errors/tutorial003_py310.py

        return JSONResponse(
            status_code=418,
            content={"message": f"Oops! {exc.name} did something. There goes a rainbow..."},
        )
    
    
    @app.get("/unicorns/{name}")
    async def read_unicorn(name: str):
        if name == "yolo":
            raise UnicornException(name=name)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 626 bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

      }
    
      // Views
    
      /**
       * {@inheritDoc}
       *
       * <p>The returned collection is not serializable.
       */
      @Override
      public Collection<V> get(@ParametricNullness K key) {
        Collection<V> collection = map.get(key);
        if (collection == null) {
          collection = createCollection(key);
        }
        return wrapCollection(key, collection);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Aug 12 15:51:57 GMT 2025
    - 46.9K bytes
    - Click Count (0)
  6. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategyTest.java

                        </dependencyManagement>
                    </project>
                    """;
    
                Document document = Document.of(pomXml);
                Map<Path, Document> pomMap = Map.of(Paths.get("pom.xml"), document);
    
                UpgradeContext context = createMockContext();
                UpgradeResult result = strategy.doApply(context, pomMap);
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  7. docs_src/request_files/tutorial003_an_py310.py

    async def create_upload_files(
        files: Annotated[
            list[UploadFile], File(description="Multiple files as UploadFile")
        ],
    ):
        return {"filenames": [file.filename for file in files]}
    
    
    @app.get("/")
    async def main():
        content = """
    <body>
    <form action="/files/" enctype="multipart/form-data" method="post">
    <input name="files" type="file" multiple>
    <input type="submit">
    </form>
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 952 bytes
    - Click Count (0)
  8. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/PlatformInitializer.kt

     */
    class PlatformInitializer : Initializer<Platform> {
      override fun create(context: Context): Platform {
        PlatformRegistry.applicationContext = context
    
        return Platform.get()
      }
    
      override fun dependencies(): List<Class<Initializer<*>>> = listOf()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Dec 31 14:50:53 GMT 2024
    - 1K bytes
    - Click Count (1)
  9. .ci/scripts/packaging-test.ps1

    {
        # Relaunch as an elevated process:
        Start-Process powershell.exe "-File",('"{0}"' -f $MyInvocation.MyCommand.Path) -Verb RunAs
        exit
    }
    
    $AppProps = ConvertFrom-StringData (Get-Content .ci/java-versions.properties -raw)
    $env:ES_BUILD_JAVA=$AppProps.ES_BUILD_JAVA
    $env:ES_RUNTIME_JAVA=$AppProps.ES_RUNTIME_JAVA
    $env:JAVA_TOOL_OPTIONS=''
    
    $ErrorActionPreference="Stop"
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 15 22:00:26 GMT 2021
    - 1.3K bytes
    - Click Count (0)
  10. docs_src/security/tutorial002_an_py310.py

        )
    
    
    async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]):
        user = fake_decode_token(token)
        return user
    
    
    @app.get("/users/me")
    async def read_users_me(current_user: Annotated[User, Depends(get_current_user)]):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 761 bytes
    - Click Count (0)
Back to Top