Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorEncoder ¶
ErrorEncoder is responsible for encoding an error to the ResponseWriter. Users are encouraged to use custom ErrorEncoders to encode HTTP errors to their clients, and will likely want to pass and check for their own error types. See the example shipping/handling service.
type ResponseEncoder ¶
type ResponseWriteError ¶
type ResponseWriteError struct {
Err error
}
ResponseWriteError identifies a failed write to the response connection, allowing the transport to distinguish disconnects from serialization failures.
func (*ResponseWriteError) Error ¶
func (e *ResponseWriteError) Error() string
func (*ResponseWriteError) Unwrap ¶
func (e *ResponseWriteError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.