Searched defs:contentSniffer (Results 1 – 1 of 1) sorted by relevance
25 type contentSniffer struct { struct26 r io.Reader member27 start []byte // buffer for the sniffed bytes.28 err error // set to any error encountered while reading bytes to be sniffed.30 ctype string // set on first sniff.31 sniffed bool // set to true on first sniff.34 func (cs *contentSniffer) Read(p []byte) (n int, err error) {55 func (cs *contentSniffer) ContentType() (string, bool) {