Documentation
¶
Overview ¶
Package inputbody strictly reads a stored Core input request before the dispatch attempt, without rewriting the bytes handed to a product decoder.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyBody = errors.New("inputbody: no inline body")
ErrEmptyBody is the cause of a malformed inline input with no bytes.
Functions ¶
func Check ¶
func Check(body []byte, session sessionwire.SessionID, command sessionwire.CommandID) (bodyclass.Members, error)
Check decodes the immutable body for its durable session and command.
Types ¶
type MalformedError ¶
type MalformedError struct{ Cause error }
MalformedError means no Host can read the immutable body.
func (*MalformedError) Error ¶
func (e *MalformedError) Error() string
func (*MalformedError) Unwrap ¶
func (e *MalformedError) Unwrap() error
Unwrap returns the decode failure.
type UnsupportedError ¶
type UnsupportedError struct{ Cause error }
UnsupportedError means a newer Host may understand the body.
func (*UnsupportedError) Error ¶
func (e *UnsupportedError) Error() string
func (*UnsupportedError) Unwrap ¶
func (e *UnsupportedError) Unwrap() error
Unwrap returns the decode failure.
Click to show internal directories.
Click to hide internal directories.