MCPcopy Create free account
hub / github.com/imroc/req / ReadLine

Method ReadLine

textproto_reader.go:74–77  ·  view source on GitHub ↗

ReadLine reads a single line from r, eliding the final \n or \r\n from the returned string.

()

Source from the content-addressed store, hash-verified

72// ReadLine reads a single line from r,
73// eliding the final \n or \r\n from the returned string.
74func (r *textprotoReader) ReadLine() (string, error) {
75 line, err := r.readLineSlice(-1)
76 return string(line), err
77}
78
79// readLineSlice reads a single line from r,
80// up to lim bytes long (or unlimited if lim is less than 0),

Callers 1

_readResponseMethod · 0.80

Calls 1

readLineSliceMethod · 0.95

Tested by

no test coverage detected