Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 122 for contentType (0.09 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        server.enqueue(MockResponse())
    
        // Call 1: set a deadline on the request body.
        val requestBody1: RequestBody =
          object : RequestBody() {
            override fun contentType(): MediaType = "text/plain".toMediaType()
    
            override fun writeTo(sink: BufferedSink) {
              sink.writeUtf8("abc")
              sink.timeout().deadline(5, TimeUnit.SECONDS)
            }
          }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 147.4K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt

        server.enqueue(MockResponse())
        val call =
          client.newCall(
            Request(
              url = server.url("/"),
              body =
                object : RequestBody() {
                  override fun contentType(): MediaType? = null
    
                  @Throws(
                    IOException::class,
                  )
                  override fun writeTo(sink: BufferedSink) {
                    for (i in 0..9) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/FormBodyTest.kt

        assertThat(body.value(0)).isEqualTo("c+=& d")
        assertThat(body.value(1)).isEqualTo("final frontier")
        assertThat(body.value(2)).isEqualTo("%25")
        assertThat(body.contentType().toString()).isEqualTo(
          "application/x-www-form-urlencoded",
        )
        val expected = "a%2B%3D%26+b=c%2B%3D%26+d&space%2C+the=final+frontier&%2525=%2525"
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

      }
    
      private inner class NonCompletingRequestBody : RequestBody() {
        private val chunk: ByteArray? = ByteArray(1024 * 1024)
        var ioe: IOException? = null
    
        override fun contentType(): MediaType? = "text/plain".toMediaType()
    
        override fun contentLength(): Long = chunk!!.size * 8L
    
        override fun writeTo(sink: BufferedSink) {
          try {
            var i = 0
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 70.5K bytes
    - Click Count (0)
  5. cmd/veeam-sos-api.go

    	}
    	r.Seek(off, io.SeekStart)
    
    	return NewGetObjectReaderFromReader(io.LimitReader(r, length), ObjectInfo{
    		Bucket:      bucket,
    		Name:        object,
    		Size:        r.Size(),
    		IsLatest:    true,
    		ContentType: string(mimeXML),
    		NumVersions: 1,
    		ETag:        etag,
    		ModTime:     UTCNow(),
    	}, opts)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Aug 15 00:34:56 GMT 2024
    - 8.8K bytes
    - Click Count (0)
  6. cmd/object-api-datatypes_gen.go

    			if err != nil {
    				err = msgp.WrapError(err, "RestoreOngoing")
    				return
    			}
    		case "ContentType":
    			z.ContentType, bts, err = msgp.ReadStringBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "ContentType")
    				return
    			}
    		case "ContentEncoding":
    			z.ContentEncoding, bts, err = msgp.ReadStringBytes(bts)
    			if err != nil {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 71.7K bytes
    - Click Count (0)
  7. internal/http/headers.go

    package http
    
    // Standard S3 HTTP response constants
    const (
    	LastModified       = "Last-Modified"
    	Date               = "Date"
    	ETag               = "ETag"
    	ContentType        = "Content-Type"
    	ContentMD5         = "Content-Md5"
    	ContentEncoding    = "Content-Encoding"
    	Expires            = "Expires"
    	ContentLength      = "Content-Length"
    	ContentLanguage    = "Content-Language"
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed May 07 15:37:12 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  8. internal/event/target/amqp.go

    		return err
    	}
    
    	if err = ch.Publish(target.args.Exchange, target.args.RoutingKey, target.args.Mandatory,
    		target.args.Immediate, amqp091.Publishing{
    			Headers:      headers,
    			ContentType:  "application/json",
    			DeliveryMode: target.args.DeliveryMode,
    			Body:         data,
    		}); err != nil {
    		return err
    	}
    
    	// check for publisher confirms only if its enabled
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Aug 21 04:25:07 GMT 2025
    - 10K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

        writeKind: WriteKind,
      ) {
        val n = 512 * 1024
        server.bodyLimit = 0
        server.enqueue(MockResponse())
        val requestBody: RequestBody =
          object : RequestBody() {
            override fun contentType(): MediaType? = null
    
            override fun contentLength(): Long = if (uploadKind === TransferKind.CHUNKED) -1L else n.toLong()
    
            override fun writeTo(sink: BufferedSink) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Jun 21 20:36:35 GMT 2025
    - 133.2K bytes
    - Click Count (0)
  10. cmd/signature-v2.go

    	//	 Date/Expires + "\n" +
    	//	 CanonicalizedProtocolHeaders +
    	//	 CanonicalizedResource;
    	stringToSign := strings.Join([]string{
    		method,
    		headers.Get(xhttp.ContentMD5),
    		headers.Get(xhttp.ContentType),
    		date,
    		canonicalHeaders,
    	}, "\n")
    
    	return stringToSign + canonicalizedResourceV2(encodedResource, encodedQuery)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 12.2K bytes
    - Click Count (0)
Back to Top