Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2471 - 2480 of 4,067 for getS (0.02 sec)

  1. docs/uk/docs/tutorial/response-status-code.md

    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    * тощо.
    
    {* ../../docs_src/response_status_code/tutorial001.py hl[6] *}
    
    /// note | Нотатка
    
    Зверніть увагу, що `status_code` є параметром методу "декоратора" (`get`, `post` і т.д.), а не Вашої *функції операції шляху*, як усі інші параметри та тіло запиту.
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Mar 19 17:04:17 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  2. docs_src/query_params_str_validations/tutorial006c_py310.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: str | None = Query(min_length=3)):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Feb 15 16:23:59 UTC 2025
    - 261 bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/util/DocMap.java

         * @param key the key whose associated value is to be returned
         * @return the value to which the specified key is mapped, or null if no mapping exists
         */
        @Override
        public Object get(final Object key) {
            return parent.get(key);
        }
    
        /**
         * Associates the specified value with the specified key in this map.
         *
         * @param key the key with which the specified value is to be associated
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/graph/FilteredProjectDependencyGraph.java

            Key key = new Key(project, transitive, false);
            // Do not use computeIfAbsent here, as the computation is recursive
            // and this is not supported by computeIfAbsent.
            List<MavenProject> list = cache.get(key);
            if (list == null) {
                list = applyFilter(projectDependencyGraph.getDownstreamProjects(project, transitive), transitive, false);
                cache.put(key, list);
            }
            return list;
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Jun 19 16:34:39 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/project/artifact/DefaultProjectArtifactsCache.java

                    aggregating,
                    session);
            return keys.computeIfAbsent(key, k -> k);
        }
    
        @Override
        public CacheRecord get(Key key) throws LifecycleExecutionException {
            CacheRecord cacheRecord = cache.get(key);
            if (cacheRecord != null && cacheRecord.getException() != null) {
                throw cacheRecord.getException();
            }
            return cacheRecord;
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/ResourcesTest.java

            };
        List<String> result = Resources.readLines(resource, US_ASCII, collectAndLowercaseAndTrim);
        assertEquals(3600, result.size());
        assertEquals("ALICE'S ADVENTURES IN WONDERLAND", result.get(0));
        assertEquals("THE END", result.get(result.size() - 1));
      }
    
      public void testCopyToOutputStream() throws IOException {
        ByteArrayOutputStream out = new ByteArrayOutputStream();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  7. docs_src/query_params_str_validations/tutorial001_py39.py

    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: Union[str, None] = None):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 271 bytes
    - Viewed (0)
  8. docs/en/docs/advanced/security/oauth2-scopes.md

    ## Verify the `username` and data shape { #verify-the-username-and-data-shape }
    
    We verify that we get a `username`, and extract the scopes.
    
    And then we validate that data with the Pydantic model (catching the `ValidationError` exception), and if we get an error reading the JWT token or validating the data with Pydantic, we raise the `HTTPException` we created before.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  9. docs_src/dependencies/tutorial008c_py39.py

    app = FastAPI()
    
    
    class InternalError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except InternalError:
            print("Oops, we didn't raise again, Britney 😱")
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: str = Depends(get_username)):
        if item_id == "portal-gun":
            raise InternalError(
                f"The portal gun is too dangerous to be owned by {username}"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 660 bytes
    - Viewed (0)
  10. docs_src/handling_errors/tutorial001_py39.py

    from fastapi import FastAPI, HTTPException
    
    app = FastAPI()
    
    items = {"foo": "The Foo Wrestlers"}
    
    
    @app.get("/items/{item_id}")
    async def read_item(item_id: str):
        if item_id not in items:
            raise HTTPException(status_code=404, detail="Item not found")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 299 bytes
    - Viewed (0)
Back to top