http

package
v0.0.0-...-e270a8f Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpClient

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

func New

func New(timeout int) *HttpClient

func (*HttpClient) DoRequest

func (c *HttpClient) DoRequest(request Request) (*Response, error)

type Request

type Request struct {
	Method, Url, Body, QueryParams, Headers string
}

type Response

type Response struct {
	Body string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳