Documentation ¶
Overview ¶
Package httpjson helps transporting JSON over HTTP.
This might get extracted to a standalone repository, if it proves useful enough.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resource represents a JSON-speaking remote HTTP resource.
func JSON ¶
JSON helps make a HTTP request to the resource tree at url with JSON request and response bodies.
If client is nil http.DefaultClient will be used.
type TrailingDataError ¶
TrailingDataError is an error that is returned if there is trailing data after a JSON message.
func (*TrailingDataError) Error ¶
func (t *TrailingDataError) Error() string
Click to show internal directories.
Click to hide internal directories.