- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 1,772 for request (0.04 sec)
-
docs/en/docs/tutorial/handling-errors.md
These handlers are in charge of returning the default JSON responses when you `raise` an `HTTPException` and when the request has invalid data. You can override these exception handlers with your own. ### Override request validation exceptions When a request contains invalid data, **FastAPI** internally raises a `RequestValidationError`. And it also includes a default exception handler for it.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.1K bytes - Viewed (0) -
okhttp-sse/src/main/kotlin/okhttp3/sse/EventSource.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.sse import okhttp3.Request interface EventSource { /** Returns the original request that initiated this event source. */ fun request(): Request /** * Immediately and violently release resources held by this event source. This does nothing if
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/UserInfoHelper.java
public String getUserCode() { return LaRequestUtil.getOptionalRequest().map(request -> { String userCode = (String) request.getAttribute(Constants.USER_CODE); if (StringUtil.isNotBlank(userCode)) { return userCode; } userCode = getUserCodeFromRequest(request); if (StringUtil.isNotBlank(userCode)) { return userCode; }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 8.5K bytes - Viewed (0) -
docs/em/docs/tutorial/middleware.md
๐ฅ ๐ค ๐ ๐ฅ ๐ (๐ โช), ๐ซ ๐ ๐ *โฎ๏ธ* ๐ ๐ ๏ธ. /// ## โ ๐ ๏ธ โ ๐ ๏ธ ๐ โ๏ธ ๐จโ๐จ `@app.middleware("http")` ๐ ๐ ๐ข. ๐ ๏ธ ๐ข ๐จ: * `request`. * ๐ข `call_next` ๐ ๐ ๐จ `request` ๐ข. * ๐ ๐ข ๐ ๐ถโโ๏ธ `request` ๐ *โก ๐ ๏ธ*. * โคด๏ธ โซ๏ธ ๐จ `response` ๐ ๐ *โก ๐ ๏ธ*. * ๐ ๐ช โคด๏ธ ๐ ๐ `response` โญ ๐ฌ โซ๏ธ. ```Python hl_lines="8-9 11 14" {!../../docs_src/middleware/tutorial001.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.4K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java
DeployRequest request = new DeployRequest(); request.setTrace(RequestTrace.newChild(null, legacySupport.getSession().getCurrentProject())); org.eclipse.aether.artifact.Artifact mainArtifact = RepositoryUtils.toArtifact(artifact); mainArtifact = mainArtifact.setFile(source); request.addArtifact(mainArtifact);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.4K bytes - Viewed (0) -
okhttp-brotli/src/main/kotlin/okhttp3/brotli/BrotliInterceptor.kt
* * Adds Accept-Encoding: br to request and checks (and strips) for Content-Encoding: br in * responses. n.b. this replaces the transparent gzip compression in BridgeInterceptor. */ object BrotliInterceptor : Interceptor { override fun intercept(chain: Interceptor.Chain): Response { return if (chain.request().header("Accept-Encoding") == null) { val request = chain.request().newBuilder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.3K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/graph/ProjectSelector.java
.filter(project -> isMatchingProject(project, selector, reactorDirectory)) .findFirst(); } File getBaseDirectoryFromRequest(MavenExecutionRequest request) { return request.getBaseDirectory() != null ? new File(request.getBaseDirectory()) : null; } boolean isMatchingProject(MavenProject project, String selector, File reactorDirectory) { // [groupId]:artifactId
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.3K bytes - Viewed (0) -
samples/crawler/src/main/java/okhttp3/sample/Crawler.java
if (previous != null) hostnameCount = previous; if (hostnameCount.incrementAndGet() > 100) return; Request request = new Request.Builder() .url(url) .build(); try (Response response = client.newCall(request).execute()) { String responseSource = response.networkResponse() != null ? ("(network: " + response.networkResponse().code() + " over "
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Aug 12 07:26:27 UTC 2021 - 4.6K bytes - Viewed (0) -
docs_src/templates/tutorial001.py
from fastapi import FastAPI, Request from fastapi.responses import HTMLResponse from fastapi.staticfiles import StaticFiles from fastapi.templating import Jinja2Templates app = FastAPI() app.mount("/static", StaticFiles(directory="static"), name="static") templates = Jinja2Templates(directory="templates") @app.get("/items/{id}", response_class=HTMLResponse) async def read_item(request: Request, id: str):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Dec 26 20:12:34 UTC 2023 - 521 bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java
throws VersionResolutionException { RequestTrace trace = RequestTrace.newChild(request.getTrace(), request); Artifact artifact = request.getArtifact(); String version = artifact.getVersion(); VersionResult result = new VersionResult(request); Key cacheKey = null;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 20.3K bytes - Viewed (0)