Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for foobody (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/bodies/KtFunctionLikeBodyRenderer.kt

    public interface KaFunctionLikeBodyRenderer {
        public fun renderBody(analysisSession: KaSession, symbol: KaFunctionLikeSymbol, printer: PrettyPrinter)
    
        public object NO_BODY : KaFunctionLikeBodyRenderer {
            override fun renderBody(analysisSession: KaSession, symbol: KaFunctionLikeSymbol, printer: PrettyPrinter) {}
        }
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 879 bytes
    - Viewed (0)
  10. docs/ftp/README.md

    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> ls runner/
    229 Entering Extended Passive Mode (|||39155|)
    150 Opening ASCII mode data connection for file list
    drwxrwxrwx 1 nobody nobody            0 Jan  1 00:00 chunkdocs/
    drwxrwxrwx 1 nobody nobody            0 Jan  1 00:00 testdir/
    ...
    ```
    
    Following example shows how to list an object and download it locally via `ftp` client:
    
    ```
    ftp> ls runner/chunkdocs/metadata
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 06:41:25 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top