httpbinapi

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpBinApi

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

func New

func New() *HttpBinApi

func (*HttpBinApi) Delete

func (c *HttpBinApi) Delete() (res *MethodsResponse, err error)

func (*HttpBinApi) Get

func (c *HttpBinApi) Get(limit int, offset int) (res *MethodsResponse, err error)

func (*HttpBinApi) Patch

func (c *HttpBinApi) Patch(key, value string) (res *MethodsResponse, err error)

func (*HttpBinApi) Post

func (c *HttpBinApi) Post(address string, comment string) (res *MethodsResponse, err error)

func (*HttpBinApi) Put

func (c *HttpBinApi) Put(form url.Values) (res *MethodsResponse, err error)

type MethodsResponse

type MethodsResponse struct {
	Args    map[string]string `json:"args"`
	Data    string            `json:"data"`
	Files   map[string]string `json:"files"`
	Form    map[string]string `json:"form"`
	Headers map[string]string `json:"headers"`
	JSON    interface{}       `json:"json"`
	Origin  string            `json:"origin"`
	URL     string            `json:"url"`
}

Jump to

Keyboard shortcuts

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