SetupHook adds a setup hook for current teststep.
(hook string)
| 547 | |
| 548 | // SetupHook adds a setup hook for current teststep. |
| 549 | func (s *StepRequest) SetupHook(hook string) *StepRequest { |
| 550 | s.step.SetupHooks = append(s.step.SetupHooks, hook) |
| 551 | return s |
| 552 | } |
| 553 | |
| 554 | // HTTP2 enables HTTP/2 protocol |
| 555 | func (s *StepRequest) HTTP2() *StepRequest { |