- Sort Score
- Result 10 results
- Languages All
Results 241 - 250 of 1,043 for tbody (0.04 sec)
-
internal/http/close.go
) // DrainBody close non nil response with any response Body. // convenient wrapper to drain any remaining data on response body. // // Subsequently this allows golang http RoundTripper // to reuse the same connection for future requests. func DrainBody(respBody io.ReadCloser) { // Callers should close resp.Body when done reading from it. // If resp.Body is not closed, the Client's underlying RoundTripper
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 1.7K bytes - Viewed (0) -
cni/pkg/nodeagent/cni-watcher.go
} }) return nil } func (s *CniPluginServer) handleAddEvent(w http.ResponseWriter, req *http.Request) { if req.Body == nil { log.Error("empty request body") http.Error(w, "empty request body", http.StatusBadRequest) return } defer req.Body.Close() data, err := io.ReadAll(req.Body) if err != nil { log.Errorf("failed to read event report from cni plugin: %v", err)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Jul 02 18:48:50 UTC 2024 - 6.7K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/SourceMetaDataVisitor.java
import com.github.javaparser.ast.body.AnnotationDeclaration; import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; import com.github.javaparser.ast.body.EnumDeclaration; import com.github.javaparser.ast.body.FieldDeclaration; import com.github.javaparser.ast.body.MethodDeclaration; import com.github.javaparser.ast.body.Parameter; import com.github.javaparser.ast.body.TypeDeclaration;
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Mon Aug 19 15:07:24 UTC 2024 - 11.8K bytes - Viewed (0) -
cmd/admin-handlers-site-replication.go
if err := parseJSONBody(ctx, r.Body, &sites, cred.SecretKey); err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } opts := getSRAddOptions(r) status, err := globalSiteReplicationSys.AddPeerClusters(ctx, sites, opts) if err != nil { adminLogIf(ctx, err) writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } body, err := json.Marshal(status)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 19.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/BridgeInterceptor.kt
val userRequest = chain.request() val requestBuilder = userRequest.newBuilder() val body = userRequest.body if (body != null) { val contentType = body.contentType() if (contentType != null) { requestBuilder.header("Content-Type", contentType.toString()) } val contentLength = body.contentLength() if (contentLength != -1L) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.2K bytes - Viewed (0) -
docs/en/docs/reference/parameters.md
It includes: * `Query()` * `Path()` * `Body()` * `Cookie()` * `Header()` * `Form()` * `File()` You can import them all directly from `fastapi`: ```python from fastapi import Body, Cookie, File, Form, Header, Path, Query ``` ::: fastapi.Query ::: fastapi.Path ::: fastapi.Body ::: fastapi.Cookie ::: fastapi.Header ::: fastapi.Form
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 603 bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RequestCommonTest.kt
assertThat(request.body).isNull() assertThat(request.tags).isEmpty() } @Test fun constructorNoMethod() { val url = "https://example.com/".toHttpUrl() val body = "hello".toRequestBody() val headers = headersOf("User-Agent", "RequestTest") val request = Request( url = url, headers = headers, body = body, )
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/suggest/ApiAdminSuggestAction.java
@Execute public JsonResponse<ApiResult> get$index() { final SuggestBody body = new SuggestBody(); body.totalWordsNum = suggestHelper.getAllWordsNum(); body.documentWordsNum = suggestHelper.getDocumentWordsNum(); body.queryWordsNum = suggestHelper.getQueryWordsNum(); return asJson(new ApiResult.ApiConfigResponse().setting(body).status(ApiResult.Status.OK).result()); } // DELETE /api/admin/suggest/all
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 2.6K bytes - Viewed (0) -
okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt
.setHeader("content-type", "text/event-stream") .body("data: hey\n\n") .build(), ) newEventSource() listener.assertFailure("timeout") } @Test fun retainsAccept() { server.enqueue( MockResponse.Builder() .body( """ |data: hey | | """.trimMargin(),
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 6.6K bytes - Viewed (0) -
tests/test_starlette_exception.py
headers={"X-Error": "Some custom header"}, ) return {"item": items[item_id]} @app.get("/http-no-body-statuscode-exception") async def no_body_status_code_exception(): raise HTTPException(status_code=204) @app.get("/http-no-body-statuscode-with-detail-exception") async def no_body_status_code_with_detail_exception():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 7.4K bytes - Viewed (0)