http

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package http wraps part of the Go "net/http" package (https://golang.org/pkg/net/http/)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncMap

func FuncMap() template.FuncMap

Types

type HTTPGetRet

type HTTPGetRet struct {
	StatusCode int         `json:"status_code"`
	Header     http.Header `json:"header"`
	Payload    string      `json:"payload"`
}

func HTTPGet

func HTTPGet(url string) (*HTTPGetRet, error)

func (HTTPGetRet) String

func (out HTTPGetRet) String() string

Jump to

Keyboard shortcuts

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