Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendResponseToContext ¶ added in v1.1.0
func Decode ¶
Decode is a helper function that translates a byte slice into a target by converting its type.
func SetResponseCode ¶ added in v1.1.0
Types ¶
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func NewFromEcho ¶ added in v1.1.0
func NewFromFasthttp ¶ added in v1.1.0
func NewFromFasthttp(ctx *fasthttp.RequestCtx, options *Options) *Response
NewFromFasthttp creates a new response container for HTTP handlers return data using a specific standard.
func RetrieveFromContext ¶ added in v1.1.0
func (*Response) ForwardAuthenticationError ¶
func (*Response) ForwardError ¶
func (*Response) ForwardSuccess ¶
func (*Response) SetContentType ¶
type ResponserEcho ¶ added in v1.1.0
type ResponserFasthttp ¶ added in v1.1.0
type ResponserFasthttp interface {
HttpResponse() interface{}
}
ResponserFasthttp is a behavior that a struct may have to format its fields in case of an HTTP response.
Click to show internal directories.
Click to hide internal directories.