Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 1,721 for item (0.03 sec)

  1. src/main/java/org/codelibs/fess/dict/stemmeroverride/StemmerOverrideFile.java

                        }
                        return null;
                    } finally {
                        item.setNewInput(null);
                        item.setNewOutput(null);
                    }
                } catch (final IOException e) {
                    throw new DictionaryException("Failed to write: " + oldItem + " -> " + item, e);
                }
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/dict/protwords/ProtwordsFile.java

                isCommit = true;
                if (item != null && item.isUpdated()) {
                    try {
                        writer.write(item.toLineString());
                        writer.write(Constants.LINE_SEPARATOR);
                        return item;
                    } catch (final IOException e) {
                        throw new DictionaryException("Failed to write: " + item, e);
                    }
                }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/dict/stopwords/StopwordsFile.java

                isCommit = true;
                if (item != null && item.isUpdated()) {
                    try {
                        writer.write(item.toLineString());
                        writer.write(Constants.LINE_SEPARATOR);
                        return item;
                    } catch (final IOException e) {
                        throw new DictionaryException("Failed to write: " + item, e);
                    }
                }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/service/BadWordService.java

                return StringUtil.EMPTY;
            }
            String item = list.get(index).trim();
            if (StringUtil.isBlank(item)) {
                return StringUtil.EMPTY;
            }
            if (item.length() > 1 && item.charAt(0) == '"' && item.charAt(item.length() - 1) == '"') {
                item = item.substring(1, item.length() - 1);
            }
            return item;
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/body-multiple-params.md

    /// info
    
    `Body` 同样具有与 `Query`、`Path` 以及其他后面将看到的类完全相同的额外校验和元数据参数。
    
    ///
    
    ## 嵌入单个请求体参数
    
    假设你只有一个来自 Pydantic 模型 `Item` 的请求体参数 `item`。
    
    默认情况下,**FastAPI** 将直接期望这样的请求体。
    
    但是,如果你希望它期望一个拥有 `item` 键并在值中包含模型内容的 JSON,就像在声明额外的请求体参数时所做的那样,则可以使用一个特殊的 `Body` 参数 `embed`:
    
    ```Python
    item: Item = Body(embed=True)
    ```
    
    比如:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="17"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. docs_src/handling_errors/tutorial002.py

    app = FastAPI()
    
    items = {"foo": "The Foo Wrestlers"}
    
    
    @app.get("/items-header/{item_id}")
    async def read_item_header(item_id: str):
        if item_id not in items:
            raise HTTPException(
                status_code=404,
                detail="Item not found",
                headers={"X-Error": "There goes my error"},
            )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 404 bytes
    - Viewed (0)
  7. docs_src/separate_openapi_schemas/tutorial002_py39.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: Optional[str] = None
    
    
    app = FastAPI(separate_input_output_schemas=False)
    
    
    @app.post("/items/")
    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> list[Item]:
        return [
            Item(
                name="Portal Gun",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 518 bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/body-multiple-params.md

    ///
    
    ## Declare um único parâmetro de corpo indicando sua chave
    
    Suponha que você tem um único parâmetro de corpo `item`, a partir de um modelo Pydantic `Item`.
    
    Por padrão, o **FastAPI** esperará que seu conteúdo venha no corpo diretamente.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. docs_src/extra_models/tutorial004.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str
    
    
    items = [
        {"name": "Foo", "description": "There comes my hero"},
        {"name": "Red", "description": "It's my aeroplane"},
    ]
    
    
    @app.get("/items/", response_model=List[Item])
    async def read_items():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 381 bytes
    - Viewed (0)
  10. cmd/admin-handlers-site-replication.go

    	case madmin.SRBucketMetaTypeObjectLockConfig:
    		err = globalSiteReplicationSys.PeerBucketObjectLockConfigHandler(ctx, item.Bucket, item.ObjectLockConfig, item.UpdatedAt)
    	case madmin.SRBucketMetaTypeSSEConfig:
    		err = globalSiteReplicationSys.PeerBucketSSEConfigHandler(ctx, item.Bucket, item.SSEConfig, item.UpdatedAt)
    	case madmin.SRBucketMetaLCConfig:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top