response

package
v0.0.0-...-161c778 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultOnSuccessTemplate = "{{.Action.SuccessBody }}"
	DefaultOnErrorTemplate   = "{{.Action.ErrorBody }}"
)

Variables

View Source
var DefaultHeaders map[string]string

Functions

This section is empty.

Types

type Response

type Response struct {
	// contains filtered or unexported fields
}

func New

func New(w http.ResponseWriter, ruleResp rules.Respond, logger *logger.Logger) *Response

func (*Response) ActionResponse

func (r *Response) ActionResponse(actionResp actions.ActionResponse)

func (*Response) AddRequestData

func (r *Response) AddRequestData(reqData requestdata.Data)

func (*Response) InternalServerError

func (r *Response) InternalServerError(err error)

func (*Response) InternalServerErrorf

func (r *Response) InternalServerErrorf(msg string, args ...interface{})

func (*Response) RequestEntityTooLarge

func (r *Response) RequestEntityTooLarge(current int, limit int)

func (*Response) Unauthorised

func (r *Response) Unauthorised()

Jump to

Keyboard shortcuts

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