handler

package
v0.0.0-...-e417875 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Suite

type Suite struct {
	suite.Suite

	Config   *restapi.Config
	Security *securitytesting.Context
	// contains filtered or unexported fields
}

Suite ...

func (*Suite) Delete

func (suite *Suite) Delete(url string, headers ...map[string]string) (*http.Response, error)

Delete ...

func (*Suite) DoReq

func (suite *Suite) DoReq(method string, url string, body io.Reader, headers ...map[string]string) (*http.Response, error)

DoReq ...

func (*Suite) Get

func (suite *Suite) Get(url string, headers ...map[string]string) (*http.Response, error)

Get ...

func (*Suite) GetJSON

func (suite *Suite) GetJSON(url string, js interface{}, headers ...map[string]string) (*http.Response, error)

GetJSON ...

func (*Suite) Patch

func (suite *Suite) Patch(url string, body io.Reader, headers ...map[string]string) (*http.Response, error)

Patch ...

func (*Suite) PatchJSON

func (suite *Suite) PatchJSON(url string, js interface{}) (*http.Response, error)

PatchJSON ...

func (*Suite) Post

func (suite *Suite) Post(url string, body io.Reader, headers ...map[string]string) (*http.Response, error)

Post ...

func (*Suite) PostJSON

func (suite *Suite) PostJSON(url string, js interface{}) (*http.Response, error)

PostJSON ...

func (*Suite) Put

func (suite *Suite) Put(url string, body io.Reader, headers ...map[string]string) (*http.Response, error)

Put ...

func (*Suite) PutJSON

func (suite *Suite) PutJSON(url string, js interface{}) (*http.Response, error)

PutJSON ...

func (*Suite) SetupSuite

func (suite *Suite) SetupSuite()

SetupSuite ...

func (*Suite) TearDownSuite

func (suite *Suite) TearDownSuite()

TearDownSuite ...

Jump to

Keyboard shortcuts

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