ReadMIMEHeader reads a MIME-style header from r. The header is a sequence of possibly continued Key: Value lines ending in a blank line. The returned map m maps [CanonicalMIMEHeaderKey](key) to a sequence of values in the same order encountered in the input. For example, consider this input: My-K
()
| 223 | // "Long-Key": {"Even Longer Value"}, |
| 224 | // } |
| 225 | func (r *textprotoReader) ReadMIMEHeader() (textproto.MIMEHeader, error) { |
| 226 | return r.readMIMEHeader(math.MaxInt64, math.MaxInt64) |
| 227 | } |
| 228 | |
| 229 | // readMIMEHeader is a version of ReadMIMEHeader which takes a limit on the header size. |
| 230 | // It is called by the mime/multipart package. |
no test coverage detected