MCPcopy
hub / github.com/httprunner/httprunner / WithHeaders

Method WithHeaders

hrp/step_websocket.go:177–180  ·  view source on GitHub ↗
(headers map[string]string)

Source from the content-addressed store, hash-verified

175}
176
177func (s *StepWebSocket) WithHeaders(headers map[string]string) *StepWebSocket {
178 s.step.WebSocket.Headers = headers
179 return s
180}
181
182func (s *StepWebSocket) NewConnection() *StepWebSocket {
183 s.step.WebSocket.NewConnection = true

Calls

no outgoing calls

Tested by 15

TestHTTPProtocolFunction · 0.36
TestWebSocketProtocolFunction · 0.36
TestCaseConfigVariablesFunction · 0.36
TestCaseStepVariablesFunction · 0.36
TestCaseParseVariablesFunction · 0.36
TestRendezvousFunction · 0.36
TestCaseBasicRequestFunction · 0.36