net

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpRes

type HttpRes struct {
	ContentType string `json:"contentType"`
	Status      string
	StatusCode  int
	Body        []byte
	Cookies     []*http.Cookie
}

func POST

func POST(url string, params any, cookies []*http.Cookie, handlers ...map[string]string) (*HttpRes, error)

func (*HttpRes) IsError

func (hr *HttpRes) IsError() bool

func (*HttpRes) Text

func (hr *HttpRes) Text() string

func (*HttpRes) Unmarshal

func (hr *HttpRes) Unmarshal(res any) error

Jump to

Keyboard shortcuts

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