Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 249 for requestBody (0.2 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/kt/PostStreaming.kt

    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.RequestBody
    import okio.BufferedSink
    
    class PostStreaming {
      private val client = OkHttpClient()
    
      fun run() {
        val requestBody =
          object : RequestBody() {
            override fun contentType() = MEDIA_TYPE_MARKDOWN
    
            override fun writeTo(sink: BufferedSink) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/ForwardingRequestBody.kt

     * limitations under the License.
     */
    package okhttp3
    
    import java.io.IOException
    import okio.BufferedSink
    
    open class ForwardingRequestBody(delegate: RequestBody?) : RequestBody() {
      private val delegate: RequestBody
    
      fun delegate(): RequestBody {
        return delegate
      }
    
      override fun contentType(): MediaType? {
        return delegate.contentType()
      }
    
      @Throws(IOException::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

        val request = realChain.request
        val requestBody = request.body
        val sentRequestMillis = System.currentTimeMillis()
    
        var invokeStartEvent = true
        var responseBuilder: Response.Builder? = null
        var sendRequestException: IOException? = null
        try {
          exchange.writeRequestHeaders(request)
    
          if (HttpMethod.permitsRequestBody(request.method) && requestBody != null) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.3K bytes
    - Viewed (1)
  4. src/test/java/org/codelibs/fess/it/admin/LabelTypeTests.java

        }
    
        @Override
        protected Map<String, Object> createTestParam(int id) {
            final Map<String, Object> requestBody = new HashMap<>();
            final String keyProp = NAME_PREFIX + id;
            requestBody.put(KEY_PROPERTY, keyProp);
            requestBody.put("value", new Integer(id).toString());
            return requestBody;
        }
    
        @Override
        protected Map<String, Object> getUpdateMap() {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/it/admin/RelatedQueryTests.java

        }
    
        @Override
        protected Map<String, Object> createTestParam(int id) {
            final Map<String, Object> requestBody = new HashMap<>();
            final String keyProp = NAME_PREFIX + id;
            requestBody.put(KEY_PROPERTY, keyProp);
            requestBody.put("queries", "query" + id);
            return requestBody;
        }
    
        @Override
        protected Map<String, Object> getUpdateMap() {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  6. tests/test_generate_unique_id_function.py

            "paths": {
                "/": {
                    "post": {
                        "summary": "Post Root",
                        "operationId": "foo_post_root",
                        "requestBody": {
                            "content": {
                                "application/json": {
                                    "schema": {
                                        "$ref": "#/components/schemas/Body_foo_post_root"
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Jan 13 15:10:26 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/it/admin/dict/SynonymTests.java

        }
    
        @Override
        protected Map<String, Object> createTestParam(int id) {
            final Map<String, Object> requestBody = new HashMap<>();
            final String keyProp = NAME_PREFIX + id;
            requestBody.put(KEY_PROPERTY, keyProp);
            requestBody.put("outputs", "output");
            return requestBody;
        }
    
        @Override
        protected Map<String, Object> getUpdateMap() {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

          level = DeprecationLevel.ERROR,
        )
        fun body(): RequestBody = body
    
        companion object {
          @JvmStatic
          fun create(body: RequestBody): Part = create(null, body)
    
          @JvmStatic
          fun create(
            headers: Headers?,
            body: RequestBody,
          ): Part {
            require(headers?.get("Content-Type") == null) { "Unexpected header: Content-Type" }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  9. mockwebserver/src/main/kotlin/mockwebserver3/internal/duplex/MockStreamHandler.kt

        apply {
          actions += { stream ->
            val actual = stream.requestBody.readUtf8(expected.utf8Size())
            if (actual != expected) throw AssertionError("$actual != $expected")
          }
        }
    
      fun exhaustRequest() =
        apply {
          actions += { stream ->
            if (!stream.requestBody.exhausted()) throw AssertionError("expected exhausted")
          }
        }
    
      fun cancelStream() =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/it/admin/RelatedContentTests.java

        }
    
        @Override
        protected Map<String, Object> createTestParam(int id) {
            final Map<String, Object> requestBody = new HashMap<>();
            final String keyProp = NAME_PREFIX + id;
            requestBody.put(KEY_PROPERTY, keyProp);
            requestBody.put("content", "query" + id);
            return requestBody;
        }
    
        @Override
        protected Map<String, Object> getUpdateMap() {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.3K bytes
    - Viewed (0)
Back to top