MCPcopy Index your code
hub / github.com/probelabs/goreplay / NewHTTPInput

Function NewHTTPInput

input_http.go:20–28  ·  view source on GitHub ↗

NewHTTPInput constructor for HTTPInput. Accepts address with port which it will listen on.

(address string)

Source from the content-addressed store, hash-verified

18
19// NewHTTPInput constructor for HTTPInput. Accepts address with port which it will listen on.
20func NewHTTPInput(address string) (i *HTTPInput) {
21 i = new(HTTPInput)
22 i.data = make(chan []byte, 1000)
23 i.stop = make(chan bool)
24
25 i.listen(address)
26
27 return
28}
29
30// PluginRead reads message from this plugin
31func (i *HTTPInput) PluginRead() (*Message, error) {

Callers 2

TestHTTPInputFunction · 0.85

Calls 1

listenMethod · 0.45

Tested by 2

TestHTTPInputFunction · 0.68