MCPcopy
hub / github.com/iron-io/functions / HTTPProtocol

Struct HTTPProtocol

api/runner/protocol/http.go:21–24  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

19// containers stdout. It also mandates valid HTTP headers back and forth, thus
20// returning errors in case of parsing problems.
21type HTTPProtocol struct {
22 in io.Writer
23 out io.Reader
24}
25
26func (p *HTTPProtocol) IsStreamable() bool {
27 return true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected