- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 42 for foobody (0.18 sec)
-
okhttp/src/main/kotlin/okhttp3/FormBody.kt
encodeSet = FORM_ENCODE_SET, alreadyEncoded = true, plusIsSpace = true, charset = charset, ) } fun build(): FormBody = FormBody(names, values) } companion object { private val CONTENT_TYPE: MediaType = "application/x-www-form-urlencoded".toMediaType() }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Tue Jan 09 12:33:05 UTC 2024 - 4.3K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostForm.kt
*/ package okhttp3.recipes.kt import java.io.IOException import okhttp3.FormBody import okhttp3.HttpUrl.Companion.toHttpUrl import okhttp3.OkHttpClient import okhttp3.Request class PostForm { private val client = OkHttpClient() fun run() { val formBody = FormBody.Builder() .add("search", "Jurassic Park") .build() val request = Request(
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.3K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/PostForm.java
package okhttp3.recipes; import java.io.IOException; import okhttp3.FormBody; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; public final class PostForm { private final OkHttpClient client = new OkHttpClient(); public void run() throws Exception { RequestBody formBody = new FormBody.Builder() .add("search", "Jurassic Park") .build();
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sun May 22 01:29:42 UTC 2016 - 1.4K bytes - Viewed (0) -
src/net/http/http.go
} return string(b) } // NoBody is an [io.ReadCloser] with no bytes. Read always returns EOF // and Close always returns nil. It can be used in an outgoing client // request to explicitly signal that a request has zero bytes. // An alternative, however, is to simply set [Request.Body] to nil. var NoBody = noBody{} type noBody struct{} func (noBody) Read([]byte) (int, error) { return 0, io.EOF }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 5.1K bytes - Viewed (0) -
internal/http/request-recorder.go
package http import ( "bytes" "io" ) // RequestRecorder - records the // of a given io.Reader type RequestRecorder struct { // Data source to record io.Reader // Response body should be logged LogBody bool // internal recording buffer buf bytes.Buffer // total bytes read including header size bytesRead int } // Close is a no operation closer func (r *RequestRecorder) Close() error { // no-op
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Apr 12 21:37:19 UTC 2023 - 1.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/FormBodyTest.kt
fun encodedPair() { val body = FormBody.Builder() .add("sim", "ple") .build() val expected = "sim=ple" assertThat(body.contentLength()).isEqualTo(expected.length.toLong()) val buffer = Buffer() body.writeTo(buffer) assertThat(buffer.readUtf8()).isEqualTo(expected) } @Test fun encodeMultiplePairs() { val body = FormBody.Builder() .add("sim", "ple")
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.8K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/impl/KtDeclarationRendererForSource.kt
codeStyle = KaRecommendedRendererCodeStyle modifiersRenderer = KaDeclarationModifiersRendererForSource.NO_IMPLICIT_MODIFIERS classifierBodyRenderer = KaClassifierBodyRenderer.NO_BODY bodyMemberScopeProvider = KaRendererBodyMemberScopeProvider.ALL_DECLARED bodyMemberScopeSorter = KaRendererBodyMemberScopeSorter.ENUM_ENTRIES_AT_BEGINING
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 6.2K bytes - Viewed (0) -
src/cmd/go/internal/auth/netrc_test.go
login justlogin machine test.host login user2 password pwd2 machine oneline login user3 password pwd3 machine ignore.host macdef ignore login nobody password nothing machine hasmacro.too macdef ignore-next-lines login user4 password pwd4 login nobody password nothing default login anonymous password ******@****.*** machine after.default login oops password too-late-in-file `
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 23 21:11:28 UTC 2019 - 1K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_kernel_creator.cc
// Create the kernel. Device* dev = flr->device(); Status s; auto props = std::make_shared<NodeProperties>( &fbody->record->fdef().signature(), node_def, fbody->arg_types, fbody->ret_types); OpKernelConstruction construction(DeviceType(dev->device_type()), dev, dev->GetAllocator(AllocatorAttributes()),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 31 22:24:01 UTC 2023 - 4.4K bytes - Viewed (0) -
cmd/http-tracer.go
return } tc.FuncName = getOpName(runtime.FuncForPC(reflect.ValueOf(f).Pointer()).Name()) tc.RequestRecorder.LogBody = logBody tc.ResponseRecorder.LogAllBody = logBody tc.ResponseRecorder.LogErrBody = true f.ServeHTTP(w, r) } } func httpTraceAll(f http.HandlerFunc) http.HandlerFunc { return httpTrace(f, true) } func httpTraceHdrs(f http.HandlerFunc) http.HandlerFunc {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 03 15:45:54 UTC 2024 - 6K bytes - Viewed (0)