Documentation ¶
Overview ¶
Package rest implements the REST model for Representational State Transfer.
Index ¶
- Constants
- func Handle(path string, obj *Object)
- type Object
- func (obj *Object) Delete(w io.Writer, headers http.Header, r *http.Request) (int, error)
- func (obj *Object) Get(w io.Writer, headers http.Header, r *http.Request) (int, error)
- func (obj *Object) Head(w io.Writer, headers http.Header, r *http.Request) (int, error)
- func (obj *Object) Patch(w io.Writer, headers http.Header, r *http.Request) (int, error)
- func (obj *Object) Post(w io.Writer, headers http.Header, r *http.Request) (int, error)
- func (obj *Object) Put(w io.Writer, headers http.Header, r *http.Request) (int, error)
- func (obj *Object) ServeHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
View Source
const ( ApplicationJSON = "application/json;charset=utf-8" PlainText = "text/plain;charset=utf-8" )
Standard Content-Type values
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.