- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 782 for donut (0.02 seconds)
-
docs_src/response_model/tutorial002_py310.py
from fastapi import FastAPI from pydantic import BaseModel, EmailStr app = FastAPI() class UserIn(BaseModel): username: str password: str email: EmailStr full_name: str | None = None # Don't do this in production! @app.post("/user/") async def create_user(user: UserIn) -> UserIn:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Jan 07 13:45:48 GMT 2023 - 318 bytes - Click Count (0) -
cmd/object-handlers-common.go
if r.Method != http.MethodPut { return false } // If the object doesn't have a modtime (IsZero), or the modtime // is obviously garbage (Unix time == 0), then ignore modtimes // and don't process the If-Modified-Since header. if objInfo.ModTime.IsZero() || objInfo.ModTime.Equal(time.Unix(0, 0)) { return false } // Headers to be set of object content is not going to be written to the client.Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Jul 23 12:36:06 GMT 2025 - 15.2K bytes - Click Count (0) -
docs_src/handling_errors/tutorial004_py39.py
return PlainTextResponse(message, status_code=400) @app.get("/items/{item_id}") async def read_item(item_id: int): if item_id == 3: raise HTTPException(status_code=418, detail="Nope! I don't like 3.")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 920 bytes - Click Count (0) -
android/guava/src/com/google/common/reflect/TypeResolver.java
return; // Okay to say Foo is <?> } // Can't map from a raw class to anything other than itself or a wildcard. // You can't say "assuming String is Integer". // And we don't support "assuming String is T"; user has to say "assuming T is String". throw new IllegalArgumentException("No type mapping from " + fromClass + " to " + to); } }.visit(from); } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 22:30:05 GMT 2025 - 25.3K bytes - Click Count (0) -
docs/en/docs/tutorial/body.md
Your API almost always has to send a **response** body. But clients don't necessarily need to send **request bodies** all the time, sometimes they only request a path, maybe with some query parameters, but don't send a body.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 6.8K bytes - Click Count (0) -
android-test/src/test/kotlin/okhttp/android/test/RobolectricOkHttpClientTest.kt
@Config( sdk = [23, 26, 30, 33, 35], ) class RobolectricOkHttpClientTest : BaseOkHttpClientUnitTest() { @Before fun setContext() { // This is awkward because Robolectric won't run our initializers and we don't want test deps // https://github.com/robolectric/robolectric/issues/8461 OkHttp.initialize(ApplicationProvider.getApplicationContext()) }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Aug 30 16:25:39 GMT 2025 - 1.2K bytes - Click Count (0) -
tests/test_dependency_contextvars.py
assert request_state return request_state["user"] client = TestClient(app) def test_dependency_contextvars(): """ Check that custom middlewares don't affect the contextvar context for dependencies. The code before yield and the code after yield should be run in the same contextvar context, so that request_state_context_var.reset(contextvar_token).Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.5K bytes - Click Count (0) -
docs/en/docs/tutorial/background-tasks.md
## Caveat { #caveat } If you need to perform heavy background computation and you don't necessarily need it to be run by the same process (for example, you don't need to share memory, variables, etc), you might benefit from using other bigger tools like <a href="https://docs.celeryq.dev" class="external-link" target="_blank">Celery</a>.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 4.8K bytes - Click Count (0) -
.teamcity/src/main/kotlin/promotion/PublishNightlySnapshot.kt
triggers { val triggerHour = branch.determineNightlyPromotionTriggerHour() ?: return@triggers // for master/release branch, we trigger them on midnight (with pending change only, i.e. if there is no change, don't rigger it) // for old release branches, we trigger them on midnight if there is change, or unconditionally on weekends when { branch.isMaster || branch.isRelease ->Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Dec 29 08:57:18 GMT 2025 - 4.3K bytes - Click Count (0) -
build-logic/integration-testing/src/main/kotlin/gradlebuild.distribution-testing.gradle.kts
gradleUserHomeDir = intTestHomeDir // The user home dir is not wiped out by clean. Move the daemon working space underneath the build dir so they don't pile up on CI. // The actual daemon registry dir will be a subfolder using the name of the distribution. daemonRegistry = repoRoot().dir("build/daemon")Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Aug 18 18:02:41 GMT 2025 - 3.8K bytes - Click Count (0)