httpclient

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetRequest added in v0.4.0

type GetRequest struct {
	RequestId string
	Headers   map[string]string
	Url       string
}

func NewGetRequest added in v0.4.0

func NewGetRequest(requestId string, headers map[string]string, url string) *GetRequest

type HttpClient

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

func NewHttpClient

func NewHttpClient(logger logger) *HttpClient

func (*HttpClient) GetJson added in v0.4.0

func (c *HttpClient) GetJson(request *GetRequest, dto any) error

func (*HttpClient) PostJson added in v0.4.0

func (c *HttpClient) PostJson(request *PostRequest, responseDto any) error

type PostRequest added in v0.4.0

type PostRequest struct {
	RequestId string
	Headers   map[string]string
	Url       string
	Body      any
}

func NewPostRequest added in v0.4.0

func NewPostRequest(requestId string, headers map[string]string, url string, body any) *PostRequest

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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