Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isWS (0.18 sec)

  1. src/net/http/sniff.go

    	// Index of the first non-whitespace byte in data.
    	firstNonWS := 0
    	for ; firstNonWS < len(data) && isWS(data[firstNonWS]); firstNonWS++ {
    	}
    
    	for _, sig := range sniffSignatures {
    		if ct := sig.match(data, firstNonWS); ct != "" {
    			return ct
    		}
    	}
    
    	return "application/octet-stream" // fallback
    }
    
    // isWS reports whether the provided byte is a whitespace byte (0xWS)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 20 21:51:06 UTC 2022
    - 7.9K bytes
    - Viewed (0)
Back to top