You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a way to alter the options before initialising the request would be helpful. Currently there's no easy way to alter the searchParams or urlPrefix in a hook. For example, sanitisation/modification of searchParams is only possible through the beforeRequest hook by "deconstructing" and then constructing and returning a new request AFAIK. I think sth like the init hook of got will be useful in these(and other) situations.
The text was updated successfully, but these errors were encountered:
Having a way to alter the options before initialising the request would be helpful. Currently there's no easy way to alter the
searchParams
orurlPrefix
in a hook. For example, sanitisation/modification ofsearchParams
is only possible through thebeforeRequest
hook by "deconstructing" and then constructing and returning a new request AFAIK. I think sth like the init hook ofgot
will be useful in these(and other) situations.The text was updated successfully, but these errors were encountered: