Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 11 of 11 for ParseMediaType (0.28 sec)

  1. src/cmd/go/internal/web/http.go

    		Header:     map[string][]string(res.Header),
    		Body:       res.Body,
    	}
    
    	if res.StatusCode != http.StatusOK {
    		contentType := res.Header.Get("Content-Type")
    		if mediaType, params, _ := mime.ParseMediaType(contentType); mediaType == "text/plain" {
    			switch charset := strings.ToLower(params["charset"]); charset {
    			case "us-ascii", "utf-8", "":
    				// Body claims to be plain text in UTF-8 or a subset thereof.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 17:34:27 UTC 2023
    - 9.7K bytes
    - Viewed (0)
Back to top