HTTPProtocol converts stdin/stdout streams into HTTP/1.1 compliant communication. It relies on Content-Length to know when to stop reading from containers stdout. It also mandates valid HTTP headers back and forth, thus returning errors in case of parsing problems.
| 19 | // containers stdout. It also mandates valid HTTP headers back and forth, thus |
| 20 | // returning errors in case of parsing problems. |
| 21 | type HTTPProtocol struct { |
| 22 | in io.Writer |
| 23 | out io.Reader |
| 24 | } |
| 25 | |
| 26 | func (p *HTTPProtocol) IsStreamable() bool { |
| 27 | return true |
nothing calls this directly
no outgoing calls
no test coverage detected