Search Options

Results per page
Sort
Preferred Languages
Advance

Results 591 - 600 of 1,369 for Put (0.08 sec)

  1. android/guava/src/com/google/common/collect/AbstractSetMultimap.java

       *     multimap already contained the key-value pair
       */
      @CanIgnoreReturnValue
      @Override
      public boolean put(@ParametricNullness K key, @ParametricNullness V value) {
        return super.put(key, value);
      }
    
      /**
       * Compares the specified object to this multimap for equality.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. docs_src/body/tutorial003_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    app = FastAPI()
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Jan 09 14:28:58 UTC 2024
    - 324 bytes
    - Viewed (0)
  3. docs_src/bigger_applications/app_an/routers/items.py

    async def read_item(item_id: str):
        if item_id not in fake_items_db:
            raise HTTPException(status_code=404, detail="Item not found")
        return {"name": fake_items_db[item_id]["name"], "item_id": item_id}
    
    
    @router.put(
        "/{item_id}",
        tags=["custom"],
        responses={403: {"description": "Operation forbidden"}},
    )
    async def update_item(item_id: str):
        if item_id != "plumbus":
            raise HTTPException(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 1011 bytes
    - Viewed (0)
  4. docs_src/body_updates/tutorial001.py

        "baz": {"name": "Baz", "description": None, "price": 50.2, "tax": 10.5, "tags": []},
    }
    
    
    @app.get("/items/{item_id}", response_model=Item)
    async def read_item(item_id: str):
        return items[item_id]
    
    
    @app.put("/items/{item_id}", response_model=Item)
    async def update_item(item_id: str, item: Item):
        update_item_encoded = jsonable_encoder(item)
        items[item_id] = update_item_encoded
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 906 bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

          assertCollectionIsUnmodifiable(multimap.get(key), sampleValue);
          assertMultimapRemainsUnmodified(multimap, originalEntries);
        }
    
        // Test #put()
        try {
          multimap.put(sampleKey, sampleValue);
          fail("put succeeded on unmodifiable multimap");
        } catch (UnsupportedOperationException expected) {
        }
        assertMultimapRemainsUnmodified(multimap, originalEntries);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

          new ImmutableTable.Builder<String, SecretKey, HashFunction>()
              .put("HmacMD5", MD5_KEY, Hashing.hmacMd5(MD5_KEY))
              .put("HmacSHA1", SHA1_KEY, Hashing.hmacSha1(SHA1_KEY))
              .put("HmacSHA256", SHA256_KEY, Hashing.hmacSha256(SHA256_KEY))
              .put("HmacSHA512", SHA512_KEY, Hashing.hmacSha512(SHA512_KEY))
              .build();
    
      public void testNulls() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  7. src/archive/zip/testdata/readme.zip

    unpack it into /usr/local/go, or if you rebuild from sources by running all.bash (see doc/install.html). You should also add the Go binary directory $GOROOT/bin to your shell's path. For example, if you extracted the tar file into $HOME/go, you might put the following in your .profile: export GOROOT=$HOME/go export PATH=$PATH:$GOROOT/bin See doc/install.html for more details....
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Sat Jul 11 14:36:33 UTC 2015
    - 1.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

            for (int i = 1; key != null || value != null; i++) {
                List values = (List) map.get(key);
                if (values == null) {
                    values = new ArrayList();
                    map.put(key, values);
                }
                values.add(value);
                key = connection.getHeaderFieldKey(i);
                value = connection.getHeaderField(i);
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 20.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/api/admin/fileauth/ApiAdminFileauthAction.java

                return null;
            })).status(Status.OK).result());
        }
    
        // PUT /api/admin/fileauth/setting
        @Execute
        public JsonResponse<ApiResult> put$setting(final CreateBody body) {
            validateApi(body, messages -> {});
            if (!isValidFileConfigId(body.fileConfigId)) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/StandardMutableNetwork.java

       */
      @CanIgnoreReturnValue
      private NetworkConnections<N, E> addNodeInternal(N node) {
        NetworkConnections<N, E> connections = newConnections();
        checkState(nodeConnections.put(node, connections) == null);
        return connections;
      }
    
      @Override
      @CanIgnoreReturnValue
      public boolean addEdge(N nodeU, N nodeV, E edge) {
        checkNotNull(nodeU, "nodeU");
        checkNotNull(nodeV, "nodeV");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 5.7K bytes
    - Viewed (0)
Back to top