response

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 2 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
	Status      status.Status
	ContentType string
	// TODO: add corresponding Content-Encoding field
	// TODO: automatically apply the encoding on a body when specified
	TransferEncoding string
	Headers          []string
	Body             []byte
	Code             status.Code
}

func (Fields) Clear

func (f Fields) Clear() Fields

Jump to

Keyboard shortcuts

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