Search Options

Results per page
Sort
Preferred Languages
Advance

Results 551 - 560 of 1,080 for Str (0.03 sec)

  1. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

                }
                System.arraycopy(Strings.getUNIBytes(str), 0, dst, dstIndex, str.length() * 2);
                dstIndex += str.length() * 2;
                dst[ dstIndex++ ] = (byte) '\0';
                dst[ dstIndex++ ] = (byte) '\0';
            }
            else {
                byte[] b = Strings.getOEMBytes(str, this.getConfig());
                System.arraycopy(b, 0, dst, dstIndex, b.length);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 32.7K bytes
    - Viewed (0)
  2. tests/test_modules_same_name_body/app/a.py

    from fastapi import APIRouter, Body
    
    router = APIRouter()
    
    
    @router.post("/compute")
    def compute(a: int = Body(), b: str = Body()):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 160 bytes
    - Viewed (0)
  3. docs_src/request_forms_and_files/tutorial001_an.py

    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_file(
        file: Annotated[bytes, File()],
        fileb: Annotated[UploadFile, File()],
        token: Annotated[str, Form()],
    ):
        return {
            "file_size": len(file),
            "token": token,
            "fileb_content_type": fileb.content_type,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 396 bytes
    - Viewed (0)
  4. docs_src/configure_swagger_ui/tutorial002.py

    from fastapi import FastAPI
    
    app = FastAPI(swagger_ui_parameters={"syntaxHighlight.theme": "obsidian"})
    
    
    @app.get("/users/{username}")
    async def read_user(username: str):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 19 19:54:04 UTC 2023
    - 216 bytes
    - Viewed (0)
  5. docs_src/header_params/tutorial002_py310.py

    from fastapi import FastAPI, Header
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        strange_header: str | None = Header(default=None, convert_underscores=False),
    ):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 228 bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/request-files.md

    ### `UploadFile`
    
    `UploadFile` ✔️ 📄 🔢:
    
    * `filename`: `str` ⏮️ ⏮️ 📁 📛 👈 📂 (✅ `myimage.jpg`).
    * `content_type`: `str` ⏮️ 🎚 🆎 (📁 🆎 / 📻 🆎) (✅ `image/jpeg`).
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. docs_src/cookie_params/tutorial001_an_py310.py

    from typing import Annotated
    
    from fastapi import Cookie, FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(ads_id: Annotated[str | None, Cookie()] = None):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 205 bytes
    - Viewed (0)
  8. docs_src/extra_models/tutorial005.py

    from typing import Dict
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/keyword-weights/", response_model=Dict[str, float])
    async def read_keyword_weights():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 205 bytes
    - Viewed (0)
  9. docs_src/path_params_numeric_validations/tutorial002_an.py

    from fastapi import FastAPI, Path
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(
        q: str, item_id: Annotated[int, Path(title="The ID of the item to get")]
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 321 bytes
    - Viewed (0)
  10. docs_src/header_params/tutorial001_an_py310.py

    from typing import Annotated
    
    from fastapi import FastAPI, Header
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(user_agent: Annotated[str | None, Header()] = None):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 217 bytes
    - Viewed (0)
Back to top