request

package
v0.0.0-...-fad68f1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 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 Request

type Request struct {
	Method string `json:"method"`
	Data   any    `json:"data"`
	Path   string `json:"params"`
}

func NewRequest

func NewRequest() *Request

func (*Request) Send

func (req *Request) Send(config *medusa.Config) (*http.Response, error)

func (*Request) SetData

func (req *Request) SetData(data any) *Request

func (*Request) SetMethod

func (req *Request) SetMethod(method string) *Request

func (*Request) SetPath

func (req *Request) SetPath(path string) *Request

Jump to

Keyboard shortcuts

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