httputil

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatContentDisposition added in v0.4.0

func FormatContentDisposition(dispositionType string, filename string) string

Format a Content-Disposition header per the guidance in RFC 6266

Types

type TraceEvent

type TraceEvent struct {
	Time    time.Time
	Event   string
	Message string
}

type TraceLog

type TraceLog struct {
	Events []TraceEvent
	// contains filtered or unexported fields
}

TraceLog logs the events which occur during an HTTP client request

func (*TraceLog) ClientTrace

func (log *TraceLog) ClientTrace() *httptrace.ClientTrace

Return a net/http/httptrace.ClientTrace which stores the events in log.Events.

Jump to

Keyboard shortcuts

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