response

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultContentType = "text/html"

Variables

This section is empty.

Functions

This section is empty.

Types

type Fields

type Fields struct {
	Attachment  types.Attachment
	Headers     []headers.Header
	Body        []byte
	Cookies     []cookie.Cookie
	Status      status.Status
	ContentType string
	// TODO: add corresponding Content-Encoding field
	// TODO: automatically apply the encoding on a body when specified
	TransferEncoding string
	Code             status.Code
}

func (*Fields) Clear

func (f *Fields) Clear()

Jump to

Keyboard shortcuts

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