http

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

A custom implementation of HTTP request sender.

A custom implementation is required because fasthttp's one does not support streaming response bodies. So, if you start to use proxies to download gigabytes of data, you are going to have serious problems.

Index

Constants

View Source
const (
	// BufferedReaderSize defines a size of buffer for reading from the
	// socket.
	BufferedReaderSize = 32 * 1024
)

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context,
	conn io.ReadWriteCloser,
	request *fasthttp.Request,
	response *fasthttp.Response) error

Execute sends an http request and assign a streaming body to the given response. conn is a closable connection to the netloc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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