Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2221 - 2230 of 3,913 for getT (0.04 sec)

  1. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/PluginsMetadataGenerator.java

                PluginInfo pluginInfo = extractPluginInfo(artifact);
                if (pluginInfo != null) {
                    String key = pluginInfo.groupId;
                    if (processedPlugins.get(key) == null) {
                        PluginsMetadata pluginMetadata = plugins.get(key);
                        if (pluginMetadata == null) {
                            pluginMetadata = new PluginsMetadata(pluginInfo, timestamp);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/response-status-code.md

    # 响应状态码
    
    与指定响应模型的方式相同,在以下任意*路径操作*中,可以使用 `status_code` 参数声明用于响应的 HTTP 状态码:
    
    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    * 等……
    
    ```Python hl_lines="6"
    {!../../docs_src/response_status_code/tutorial001.py!}
    ```
    
    /// note | "笔记"
    
    注意,`status_code` 是(`get`、`post` 等)**装饰器**方法中的参数。与之前的参数和请求体不同,不是*路径操作函数*的参数。
    
    ///
    
    `status_code` 参数接收表示 HTTP 状态码的数字。
    
    /// info | "说明"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. .github/workflows/CheckBadMerge.groovy

            def stderrFuture = readStreamAsync(process.errorStream)
    
            int returnCode = process.waitFor()
            String stdout = stdoutFuture.get()
            String stderr = stderrFuture.get()
            return new ExecResult(stderr: stderr, stdout: stdout, returnCode: returnCode)
        }
    
        static String getStdout(String command) {
            ExecResult execResult = exec(command)
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Dec 19 10:35:44 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

        ImmediateScheduledFuture(ListenableFuture<V> future) {
          super(future);
        }
    
        @Override
        public V get(long timeout, TimeUnit unit)
            throws InterruptedException, ExecutionException, TimeoutException {
          Preconditions.checkNotNull(unit, "unit must not be null!");
          return get();
        }
    
        @Override
        public long getDelay(TimeUnit unit) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

        ImmediateScheduledFuture(ListenableFuture<V> future) {
          super(future);
        }
    
        @Override
        public V get(long timeout, TimeUnit unit)
            throws InterruptedException, ExecutionException, TimeoutException {
          Preconditions.checkNotNull(unit, "unit must not be null!");
          return get();
        }
    
        @Override
        public long getDelay(TimeUnit unit) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

        assertThat(expected)
            .hasMessageThat()
            .isEqualTo("I bet you didn't think Thread.interrupt could throw");
        // We need to wait for the runner to exit.  It used to be that the runner would get stuck in the
        // busy loop when interrupt threw.
        runner.join(SECONDS.toMillis(10));
      }
    
      static final class BrokenChannel extends AbstractInterruptibleChannel {
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/links/ClassLinkMetaData.java

                // Should reuse the link parsing stuff from JavadocLinkConverter instead
                method = method.substring(0, method.length() - 4) + "[])";
            }
    
            MethodLinkMetaData metaData = methods.get(method);
            if (metaData != null) {
                return metaData;
            }
    
            List<MethodLinkMetaData> candidates = new ArrayList<MethodLinkMetaData>();
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 7.4K bytes
    - Viewed (0)
  8. docs_src/app_testing/app_b_an/main.py

        "bar": {"id": "bar", "title": "Bar", "description": "The bartenders"},
    }
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        id: str
        title: str
        description: Union[str, None] = None
    
    
    @app.get("/items/{item_id}", response_model=Item)
    async def read_main(item_id: str, x_token: Annotated[str, Header()]):
        if x_token != fake_secret_token:
            raise HTTPException(status_code=400, detail="Invalid X-Token header")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 15 22:31:16 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. docs_src/additional_responses/tutorial003.py

    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        id: str
        value: str
    
    
    class Message(BaseModel):
        message: str
    
    
    app = FastAPI()
    
    
    @app.get(
        "/items/{item_id}",
        response_model=Item,
        responses={
            404: {"model": Message, "description": "The item was not found"},
            200: {
                "description": "Item requested by ID",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 837 bytes
    - Viewed (0)
  10. docs_src/security/tutorial002_an_py39.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)]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 786 bytes
    - Viewed (0)
Back to top