Documentation ¶
Index ¶
- func GetHTTPRequest(ctx context.Context) *http.Request
- func GetHTTPResponseWriter(ctx context.Context) http.ResponseWriter
- func GetHeaderParameter(ctx context.Context, name string) (string, error)
- func GetJSONPayload(ctx context.Context, entity interface{}) error
- func GetQueryParameters(ctx context.Context) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHTTPRequest ¶ added in v0.9.3
GetHTTPRequest gets request from context.
func GetHTTPResponseWriter ¶ added in v0.9.3
func GetHTTPResponseWriter(ctx context.Context) http.ResponseWriter
GetHTTPResponseWriter gets response writer from context.
func GetHeaderParameter ¶ added in v0.9.2
GetHeaderParameter gets value from request.HeaderParameter.
func GetJSONPayload ¶ added in v0.9.3
GetJSONPayload reads json payload from request and unmarshal it into entity.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.