http2

package
v0.0.0-...-c29c528 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpRequest

type HttpRequest struct {
	Url         string
	Method      string
	ContentType string
	Header      map[string]string
	Body        io.Reader
}

func (HttpRequest) Fetch

func (requestData HttpRequest) Fetch(responseBody any) error

type Request

type Request interface {
	Fetch(any) error
}

func NewHttpRequest

func NewHttpRequest(url, method string, header map[string]string, body io.Reader) Request

Jump to

Keyboard shortcuts

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