httpctx

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package httpctx holds utilities for working with HTTP protocol.

Index

Constants

This section is empty.

Variables

View Source
var ErrHTTPReqRes = errors.New("something wrong with HTTP(s) request/response")

ErrHTTPReqRes occurs when there is any problem with HTTP(s) req/res.

Functions

This section is empty.

Types

type RequestDoer added in v0.11.0

type RequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

RequestDoer describes ability to make HTTP(s) requests.

type URLValidator added in v0.8.6

type URLValidator struct{}

URLValidator has ability to validate URL

func NewURLValidator added in v0.8.6

func NewURLValidator() URLValidator

func (URLValidator) Validate added in v0.8.6

func (U URLValidator) Validate(in interface{}) error

Validate checks whether in is valid URL

Jump to

Keyboard shortcuts

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