json

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete[TData any, TResponse any](url string, data TData, parsed *TResponse, argList ...RequestArguments) error

func Get

func Get[TResponse any](url string, parsed *TResponse, argList ...RequestArguments) error

func NewJustHttpRequest added in v0.2.0

func NewJustHttpRequest[TData any, TResponse any](url string, method string, data TData, parsed *TResponse, argList []RequestArguments) justHttpRequest[TData, TResponse]

Creates a new justHttp Request object

func Post

func Post[TData any, TResponse any](url string, data TData, parsed *TResponse, argList ...RequestArguments) error

func Put

func Put[TData any, TResponse any](url string, data TData, parsed *TResponse, argList ...RequestArguments) error

Types

type BasicAuthCredentials added in v0.2.0

type BasicAuthCredentials struct {
	User string
	Pass string
}

type JustHttpError added in v0.2.0

type JustHttpError struct {
	Message string
}

func (*JustHttpError) Error added in v0.2.0

func (e *JustHttpError) Error() string

type RequestArguments

type RequestArguments struct {
	TimeoutInMilliseconds int
	SizeLimit             int64
	BasicAuthCredentials  BasicAuthCredentials
	QueryParams           map[string]string
}

Jump to

Keyboard shortcuts

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