Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MediaType (0.28 sec)

  1. src/mime/mediatype.go

    // attribute to the attribute value with its case preserved.
    func ParseMediaType(v string) (mediatype string, params map[string]string, err error) {
    	base, _, _ := strings.Cut(v, ";")
    	mediatype = strings.TrimSpace(strings.ToLower(base))
    
    	err = checkMediaTypeDisposition(mediatype)
    	if err != nil {
    		return "", nil, err
    	}
    
    	params = make(map[string]string)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt

    import okio.Buffer
    import okio.IOException
    import okio.Source
    import okio.Timeout
    import okio.buffer
    
    internal class UnreadableResponseBody(
      private val mediaType: MediaType?,
      private val contentLength: Long,
    ) : ResponseBody(), Source {
      override fun contentType() = mediaType
    
      override fun contentLength() = contentLength
    
      override fun source() = buffer()
    
      override fun read(
        sink: Buffer,
        byteCount: Long,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top