core_http

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpClient

func NewHttpClient(timeout time.Duration) *http.Client

func NewHttpRequest

func NewHttpRequest(method string, url string, body any, option *HttpRequestOption) *http.Request

func NewHttpServer

func NewHttpServer(addr string, handler http.Handler) *http.Server

Types

type HttpRequestOption

type HttpRequestOption struct {
	Header map[string]string
	Query  map[string]string
}

Jump to

Keyboard shortcuts

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