httputil

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetBuilder

type GetBuilder struct {
	// contains filtered or unexported fields
}

func CreateGetBuilder

func CreateGetBuilder(reqUrl string) *GetBuilder

func (*GetBuilder) AddHeader

func (builder *GetBuilder) AddHeader(name string, value interface{})

func (*GetBuilder) AddUrlParameter

func (builder *GetBuilder) AddUrlParameter(name string, value string)

func (*GetBuilder) Exec

func (builder *GetBuilder) Exec(v interface{}) error

type PostBuilder

type PostBuilder struct {
	// contains filtered or unexported fields
}

func CreatePostBuilder

func CreatePostBuilder(requestUrl string) PostBuilder

func (*PostBuilder) AddBodyParameter

func (builder *PostBuilder) AddBodyParameter(name string, value interface{})

func (*PostBuilder) AddHeader

func (builder *PostBuilder) AddHeader(name string, value interface{})

func (*PostBuilder) AddUrlParameter

func (builder *PostBuilder) AddUrlParameter(name string, value string)

func (*PostBuilder) Exec

func (builder *PostBuilder) Exec(v interface{}) error

func (*PostBuilder) SetBody

func (builder *PostBuilder) SetBody(v interface{})

Jump to

Keyboard shortcuts

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