httpdefault

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const UserAgent = "external-dns-selectel-webhook"

UserAgent represents HTTP User-Agent header that should be added to requests to Selectel API. You should add this header by yourself or use Headers function.

Variables

This section is empty.

Functions

func Client

func Client() http.Client

Client returns default HTTP client for requests to Selectel API. It does not add User-Agent header, so you should add it by yourself (by default it is UserAgent) or use Headers function.

func Headers

func Headers() http.Header

Headers returns default HTTP headers for requests to Selectel API.

Types

This section is empty.

Jump to

Keyboard shortcuts

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