Documentation ¶
Index ¶
- func AssureContentType(w http.ResponseWriter, r *http.Request, ct string) bool
- func AssureDecode(w http.ResponseWriter, r *http.Request, val interface{}) bool
- func JsonResponse(w http.ResponseWriter, code int, obj interface{}) error
- func Post(client *http.Client, path string, indata interface{}) ([]byte, error)
- func TestContentType(r *http.Request, ct string) (string, bool)
- type Mux
- type ResponseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssureContentType ¶
func AssureDecode ¶
func AssureDecode(w http.ResponseWriter, r *http.Request, val interface{}) bool
func JsonResponse ¶
func JsonResponse(w http.ResponseWriter, code int, obj interface{}) error
Types ¶
type ResponseWriter ¶
type ResponseWriter struct { http.ResponseWriter logger.Logger // contains filtered or unexported fields }
func (*ResponseWriter) Status ¶
func (rw *ResponseWriter) Status() int
func (*ResponseWriter) WriteHeader ¶
func (rw *ResponseWriter) WriteHeader(s int)
Click to show internal directories.
Click to hide internal directories.