httputil

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalResponse

func UnmarshalResponse(resp *http.Response) (interface{}, interface{}, error)

UnmarshalResponse takes an http Response and returns: - its body, deserialized if content-type appropriate - metadata such as headers and status code

Types

type UnmarshalFunc

type UnmarshalFunc func(action []byte, values interface{}) error

UnmarshalFunc is a type of function capable of taking the body of an http response and deserialize it into a target interface{}

Jump to

Keyboard shortcuts

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