File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " viem " : patch
3+ ---
4+
5+ Added ` fetchFn ` to ` http ` transport.
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ export type HttpTransportConfig<
3636 wait ?: number | undefined
3737 }
3838 | undefined
39+ fetchFn ?: HttpRpcClientOptions [ 'fetchFn' ] | undefined
3940 /**
4041 * Request configuration to pass to `fetch`.
4142 * @link https://developer.mozilla.org/en-US/docs/Web/API/fetch
@@ -93,6 +94,7 @@ export function http<
9394) : HttpTransport < rpcSchema , raw > {
9495 const {
9596 batch,
97+ fetchFn,
9698 fetchOptions,
9799 key = 'http' ,
98100 methods,
@@ -111,6 +113,7 @@ export function http<
111113 if ( ! url_ ) throw new UrlRequiredError ( )
112114
113115 const rpcClient = getHttpRpcClient ( url_ , {
116+ fetchFn,
114117 fetchOptions,
115118 onRequest : onFetchRequest ,
116119 onResponse : onFetchResponse ,
You can’t perform that action at this time.
0 commit comments