httptransport

package
v0.0.0-...-11e21a6 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package httptransport contains HTTP transport extensions. Here we define a http.Transport that emits events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

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

Transport performs single HTTP transactions and emits measurement events as they happen.

func New

func New(roundTripper http.RoundTripper) *Transport

New creates a new Transport.

func (*Transport) CloseIdleConnections

func (t *Transport) CloseIdleConnections()

CloseIdleConnections closes the idle connections.

func (*Transport) RoundTrip

func (t *Transport) RoundTrip(req *http.Request) (resp *http.Response, err error)

RoundTrip executes a single HTTP transaction, returning a Response for the provided Request.

Directories

Path Synopsis
Package bodytracer contains the HTTP body tracer.
Package bodytracer contains the HTTP body tracer.
Package tracetripper contains the tracing round tripper
Package tracetripper contains the tracing round tripper
Package transactioner contains the transaction assigning round tripper
Package transactioner contains the transaction assigning round tripper

Jump to

Keyboard shortcuts

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