MCPcopy
hub / github.com/httprunner/httprunner / HTTP2

Method HTTP2

hrp/step_request.go:555–560  ·  view source on GitHub ↗

HTTP2 enables HTTP/2 protocol

()

Source from the content-addressed store, hash-verified

553
554// HTTP2 enables HTTP/2 protocol
555func (s *StepRequest) HTTP2() *StepRequest {
556 s.step.Request = &Request{
557 HTTP2: true,
558 }
559 return s
560}
561
562// Loop specify running times for the current step
563func (s *StepRequest) Loop(times int) *StepRequest {

Callers 1

TestHTTPProtocolFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestHTTPProtocolFunction · 0.64