@@ -47,14 +47,14 @@ type Request struct {
4747 ctx context.Context //nolint:containedctx // Context is needed to be stored in the request.
4848
4949 body any
50- header * Header
51- params * QueryParam
52- cookies * Cookie
53- path * PathParam
50+ header Header
51+ params QueryParam
52+ cookies Cookie
53+ path PathParam
5454
5555 client * Client
5656
57- formData * FormData
57+ formData FormData
5858
5959 RawRequest * fasthttp.Request
6060 url string
@@ -324,7 +324,7 @@ func (r *Request) SetReferer(referer string) *Request {
324324// Cookie returns the value of a named cookie.
325325// If the cookie does not exist, an empty string is returned.
326326func (r * Request ) Cookie (key string ) string {
327- if val , ok := ( * r .cookies ) [key ]; ok {
327+ if val , ok := r .cookies [key ]; ok {
328328 return val
329329 }
330330 return ""
@@ -363,7 +363,7 @@ func (r *Request) DelCookies(key ...string) *Request {
363363// PathParam returns the value of a named path parameter.
364364// If the parameter does not exist, an empty string is returned.
365365func (r * Request ) PathParam (key string ) string {
366- if val , ok := ( * r .path ) [key ]; ok {
366+ if val , ok := r .path [key ]; ok {
367367 return val
368368 }
369369 return ""
@@ -967,12 +967,12 @@ func (f *File) Reset() {
967967var requestPool = & sync.Pool {
968968 New : func () any {
969969 return & Request {
970- header : & Header {RequestHeader : & fasthttp.RequestHeader {}},
971- params : & QueryParam {Args : fasthttp .AcquireArgs ()},
972- cookies : & Cookie {},
973- path : & PathParam {},
970+ header : Header {RequestHeader : & fasthttp.RequestHeader {}},
971+ params : QueryParam {Args : fasthttp .AcquireArgs ()},
972+ cookies : Cookie {},
973+ path : PathParam {},
974974 boundary : boundary ,
975- formData : & FormData {Args : fasthttp .AcquireArgs ()},
975+ formData : FormData {Args : fasthttp .AcquireArgs ()},
976976 files : make ([]* File , 0 ),
977977 RawRequest : fasthttp .AcquireRequest (),
978978 }
0 commit comments