- Sort Score
- Result 10 results
- Languages All
Results 921 - 930 of 1,496 for RESPONSE (0.2 sec)
-
fastapi/exception_handlers.py
from starlette.responses import JSONResponse, Response from starlette.status import HTTP_422_UNPROCESSABLE_ENTITY, WS_1008_POLICY_VIOLATION async def http_exception_handler(request: Request, exc: HTTPException) -> Response: headers = getattr(exc, "headers", None) if not is_body_allowed_for_status_code(exc.status_code): return Response(status_code=exc.status_code, headers=headers) return JSONResponse(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Jun 11 19:08:14 UTC 2023 - 1.3K bytes - Viewed (0) -
fastapi/utils.py
raise fastapi.exceptions.FastAPIError( "Invalid args for response field! Hint: " f"check that {type_} is a valid Pydantic field type. " "If you are using a return type annotation that is not a valid Pydantic " "field (e.g. Union[Response, dict, None]) you can disable generating the " "response model from the type annotation with the path operation decorator "
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 31 23:46:03 UTC 2024 - 7.8K bytes - Viewed (0) -
docs/de/docs/tutorial/handling-errors.md
```Python hl_lines="11" {!../../docs_src/handling_errors/tutorial001.py!} ``` ### Die resultierende Response Wenn der Client `http://example.com/items/foo` anfragt (ein `item_id` `"foo"`), erhält dieser Client einen HTTP-Statuscode 200 und folgende JSON-Response: ```JSON { "item": "The Foo Wrestlers" } ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/IndexingHelper.java
final RefreshResponse response = searchEngineClient.admin().indices().prepareRefresh(index).execute().actionGet(); if (logger.isDebugEnabled()) { logger.debug("[{}] refresh status: {} ({}/{}/{})", index, response.getStatus(), response.getTotalShards(), response.getSuccessfulShards(), response.getFailedShards()); } return response.getStatus().getStatus(); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 16.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java
* with everything else. If the below clause evaluates true * the andx command will not be written and therefore the * response will not read a batched command and therefore * the 'received' member of the response object will not * be set to true indicating the send and sendTransaction * methods that the next part should be sent. This is a
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 11.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NtlmHttpFilter.java
*/ public void doFilter( ServletRequest request, ServletResponse response, FilterChain chain ) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest)request; HttpServletResponse resp = (HttpServletResponse)response; NtlmPasswordAuthentication ntlm; if ((ntlm = negotiate( req, resp, false )) == null) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 10.4K bytes - Viewed (0) -
docs/en/docs/tutorial/query-param-models.md
//// If a client tries to send some **extra** data in the **query parameters**, they will receive an **error** response. For example, if the client tries to send a `tool` query parameter with a value of `plumbus`, like: ```http https://example.com/items/?limit=10&tool=plumbus ``` They will receive an **error** response telling them that the query parameter `tool` is not allowed: ```json { "detail": [ {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.8K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/internal/duplex/MockStreamHandler.kt
import java.util.concurrent.TimeUnit import mockwebserver3.Stream import mockwebserver3.StreamHandler import okio.utf8Size private typealias Action = (Stream) -> Unit /** * A scriptable request/response conversation. Create the script by calling methods like * [receiveRequest] in the sequence they are run. */ class MockStreamHandler : StreamHandler { private val actions = LinkedBlockingQueue<Action>()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.2K bytes - Viewed (0) -
cmd/bucket-handlers.go
if err != nil { writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } // generate response response := generateListMultipartUploadsResponse(bucket, listMultipartsInfo, encodingType) encodedSuccessResponse := encodeResponse(response) // write success response. writeSuccessResponseXML(w, encodedSuccessResponse) } // ListBucketsHandler - GET Service. // -----------
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 12 12:24:04 UTC 2024 - 63.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/ViewHelper.java
}); return response; } protected void writeNoCache(final StreamResponse response, final ResponseData responseData) { response.header("Pragma", "no-cache"); response.header("Cache-Control", "no-cache"); response.header("Expires", "Thu, 01 Dec 1994 16:00:00 GMT"); } protected void writeFileName(final StreamResponse response, final ResponseData responseData) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:20:39 UTC 2024 - 40.2K bytes - Viewed (0)