http

package
v0.0.0-...-3135b6e Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpFetcher

func NewHttpFetcher(conf config.Configuration) (httpFetcher fetcher.Fetcher, err error)

Types

type HttpFetcher

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

func (*HttpFetcher) Fetch

func (p *HttpFetcher) Fetch(fetchParams fetcher.FetchParams) (data []byte, err error)

type Params

type Params struct {
	URL     string            `json:"url"`
	Method  string            `json:"method"`
	Headers map[string]string `json:"headers"`
	Data    []byte            `json:"data"`
	Replace map[string]string `json:"replace"`
}

func (*Params) Validation

func (p *Params) Validation() (err error)

Jump to

Keyboard shortcuts

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