- Sort Score
- Result 10 results
- Languages All
Results 241 - 250 of 1,129 for examples (0.13 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt
} /** * Returns a string with containing this URL with its username, password, query, and fragment * stripped, and its path replaced with `/...`. For example, redacting * `http://username:password@example.com/path` returns `http://example.com/...`. */ fun redact(): String = newBuilder("/...")!! .username("") .password("") .build() .toString() /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 63.5K bytes - Viewed (0) -
docs/em/docs/tutorial/security/first-steps.md
/// tip π₯ `tokenUrl="token"` π β π `token` π π₯ π« β. β«οΈ β π, β«οΈ π `./token`. β©οΈ π₯ βοΈ β π, π₯ π π οΈ π `https://example.com/`, β€΄οΈ β«οΈ π π `https://example.com/token`. βοΈ π₯ π π οΈ π `https://example.com/api/v1/`, β€΄οΈ β«οΈ π π `https://example.com/api/v1/token`. βοΈ β π β β π π πΈ π§ π· π§ βοΈ πΌ π [β π³](../../advanced/behind-a-proxy.md){.internal-link target=_blank}. ///
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 6.7K bytes - Viewed (0) -
docs/em/docs/tutorial/cors.md
π β πβπ¦Ί: * `allow_origins` - π π¨π³ π π β β βοΈ-π¨π³ π¨. π€Ά β. `['https://example.org', 'https://www.example.org']`. π πͺ βοΈ `['*']` β π π¨π³. * `allow_origin_regex` - π» π» π π‘ π¨π³ π π β β βοΈ-π¨π³ π¨. β `'https://.*\.example\.org'`. * `allow_methods` - π πΊπΈπ π©βπ¬ π π β βοΈ-π¨π³ π¨. π’ `['GET']`. π πͺ βοΈ `['*']` β π π© π©βπ¬.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4K bytes - Viewed (0) -
docs/en/docs/tutorial/response-status-code.md
* **`200 - 299`** are for "Successful" responses. These are the ones you would use the most. * `200` is the default status code, which means everything was "OK". * Another example would be `201`, "Created". It is commonly used after creating a new record in the database.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 4K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/dependencies-with-yield.md
would be valid to use as a **FastAPI** dependency. In fact, FastAPI uses those two decorators internally. /// ## A database dependency with `yield` { #a-database-dependency-with-yield } For example, you could use this to create a database session and close it after finishing. Only the code prior to and including the `yield` statement is executed before creating a response:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 12.7K bytes - Viewed (0) -
docs/sts/dex.md
time="2020-07-12T20:45:50Z" level=info msg="config issuer: http://127.0.0.1:5556/dex" time="2020-07-12T20:45:50Z" level=info msg="config storage: sqlite3" time="2020-07-12T20:45:50Z" level=info msg="config static client: Example App" time="2020-07-12T20:45:50Z" level=info msg="config connector: mock" time="2020-07-12T20:45:50Z" level=info msg="config connector: local passwords enabled"
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Tue Aug 12 18:20:36 UTC 2025 - 3.8K bytes - Viewed (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
* * Example: * ``` * --> POST /greeting http/1.1 (3-byte body) * * <-- 200 OK (22ms, 6-byte body) * ``` */ BASIC, /** * Logs request and response lines and their respective headers. * * Example: * ``` * --> POST /greeting http/1.1 * Host: example.com * Content-Type: plain/text
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Aug 21 14:27:04 UTC 2025 - 11.4K bytes - Viewed (0) -
docs/en/docs/tutorial/request-files.md
As all these methods are `async` methods, you need to "await" them. For example, inside of an `async` *path operation function* you can get the contents with: ```Python contents = await myfile.read() ``` If you are inside of a normal `def` *path operation function*, you can access the `UploadFile.file` directly, for example: ```Python contents = myfile.file.read() ``` /// note | `async` Technical Details
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 7.3K bytes - Viewed (0) -
docs/en/docs/advanced/additional-responses.md
**FastAPI** will keep the additional information from `responses`, and combine it with the JSON Schema from your model. For example, you can declare a response with a status code `404` that uses a Pydantic model and has a custom `description`. And a response with a status code `200` that uses your `response_model`, but includes a custom `example`: {* ../../docs_src/additional_responses/tutorial003.py hl[20:31] *}
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 8.9K bytes - Viewed (0) -
docs/en/docs/tutorial/query-params.md
For example, in the URL: ``` http://127.0.0.1:8000/items/?skip=0&limit=10 ``` ...the query parameters are: * `skip`: with a value of `0` * `limit`: with a value of `10` As they are part of the URL, they are "naturally" strings. But when you declare them with Python types (in the example above, as `int`), they are converted to that type and validated against it.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:29:01 UTC 2025 - 4.5K bytes - Viewed (0)