http

package
v2.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2022 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package http is a http scenario

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scenario

type Scenario struct {
	models.Scenario

	URL             string
	Method          string
	Response        *http.Response
	Body            string
	Redirect        string
	ForceIP         string
	Headers         map[string]string
	Client          *http.Client
	SharedJar       *cookiejar.Jar
	SkipInsecureTLS bool `default:"false"`
}

Scenario Represent an http scenario

func (*Scenario) Close

func (h *Scenario) Close()

Close closes the scenario

func (*Scenario) Description

func (h *Scenario) Description() string

Description return scenario description

func (*Scenario) Init

func (h *Scenario) Init()

Init initialize scenario

func (*Scenario) RCA

func (h *Scenario) RCA(result *models.ScenarioResult) error

RCA generate RCAs for scenario

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL