Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReqHeaderValues ¶
type ReqHeaderValues []string
func (*ReqHeaderValues) UnmarshalJSON ¶
func (h *ReqHeaderValues) UnmarshalJSON(b []byte) error
type Request ¶
type Request struct {
Host string `json:"host"`
Path string `json:"path"`
Method string `json:"method"`
Headers map[string]ReqHeaderValues `json:"headers"`
Encoding string `json:"encoding,omitempty"`
Body string `json:"body"`
}
func ParseJsonIntoRequest ¶
type Response ¶
type ResponseWriter ¶
type ResponseWriter struct {
http.ResponseWriter
// contains filtered or unexported fields
}
func (*ResponseWriter) Header ¶
func (w *ResponseWriter) Header() http.Header
func (*ResponseWriter) WriteHeader ¶
func (w *ResponseWriter) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.