mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix(nuxt): add a doc comment describing the omission of the body for GET and HEAD requests (nuxt#20667)
This commit is contained in:
parent
f1651149bf
commit
4d6d5a7fe7
@ -27,6 +27,11 @@ interface NitroFetchOptions<R extends NitroFetchRequest, M extends AvailableRout
|
|||||||
|
|
||||||
type ComputedFetchOptions<R extends NitroFetchRequest, M extends AvailableRouterMethod<R>> = ComputedOptions<NitroFetchOptions<R, M>>
|
type ComputedFetchOptions<R extends NitroFetchRequest, M extends AvailableRouterMethod<R>> = ComputedOptions<NitroFetchOptions<R, M>>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Options for the useFetch composable.
|
||||||
|
* For GET and HEAD requests, the body property is automatically
|
||||||
|
* omitted to align with HTTP/1.1 specifications (RFC 7231).
|
||||||
|
*/
|
||||||
export type UseFetchOptions<
|
export type UseFetchOptions<
|
||||||
ResT,
|
ResT,
|
||||||
DataT = ResT,
|
DataT = ResT,
|
||||||
|
Loading…
Reference in New Issue
Block a user