response

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Content     []byte
	ContentType string
}

type Raw

type Raw struct {
	Data interface{}
}

type Response added in v1.28.0

type Response struct {
	Data    any               `json:"data"`
	Headers map[string]string `json:"-"`
}

func (Response) SetCustomHeaders added in v1.28.0

func (resp Response) SetCustomHeaders(w http.ResponseWriter)

Jump to

Keyboard shortcuts

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