1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-20 03:17:04 +00:00

add x/jsonx.DayTime type

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-02-27 22:38:09 +02:00
parent b4b1f73df6
commit 5844eaef24
5 changed files with 156 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ func (c *Client) emitEndRequest(ctx context.Context, resp *http.Response, err er
// RequestOption declares the type of option one can pass
// to the Do methods(JSON, Form, ReadJSON...).
// Request options run before request constructed.
type RequestOption func(*http.Request) error
type RequestOption = func(*http.Request) error
// We always add the following request headers, unless they're removed by custom ones.
var defaultRequestOptions = []RequestOption{