httpclient

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package httpclient provides a simple HTTP GET function for statusline API calls.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetFn

type GetFn func(url string, headers map[string]string, timeout time.Duration) (*Response, error)

GetFn is the type for HTTP GET functions.

type Response added in v0.2.5

type Response struct {
	StatusCode int
	Body       []byte
	Header     http.Header
}

Response holds HTTP response data.

func Get

func Get(url string, headers map[string]string, timeout time.Duration) (*Response, error)

Get performs an HTTP GET request with context timeout.

Jump to

Keyboard shortcuts

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