httptraceutils

package module
v0.0.0-...-aff162a Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2016 License: MIT Imports: 5 Imported by: 1

README

go-httptraceutils

MIT License Go Documentation

Go 1.7 introduces net/http/httptrace package. That provides mechanisms for tracing within HTTP requests. Since it only provides the low level struct to set hooks for various states of request, you need to write logging or displaying part by yourself. go-httptraceutils is a small helper package for logging out each hook info of httptrace. See example.

Install

Use go get,

$ go get github.com/tcnksm/go-httptraceutils

Author

Taichi Nakashima

Documentation

Overview

Package httptraceutils is helper package for httptrace.

Go 1.7 introduces net/http/httptrace package. That provides mechanisms for tracing within HTTP requests. Since it only provides the low level struct to set hooks for various states of request, you need to write logging or displaying part by yourself. go-httptraceutils is a small helper package for logging out each hook info of httptrace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithClientTrace

func WithClientTrace(ctx context.Context) context.Context

WithClientTrace wraps `httptrace.WithClientTrace` and sets logging hook in each step function of `httptrace.ClientTrace`.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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