Function: makeRequest()
makeRequest(
pathOrBaseURL,config?): <C>(action) =>Promise<Action<Awaited<C> &object,object>>
Prepare a generic HTTP request. If given path starts with scheme (HTTPS, etc.), it will be used as the base URL of action, otherwise it will only be used as path.
Parameters
• pathOrBaseURL: string
• config?: HttpRequestConfig
Returns
Function
Type parameters
• C extends object
Parameters
• action: Action<C>
Returns
Promise <Action<Awaited<C> & object, object>>
Source
packages/http/src/actions/context/enhancers/makeRequest.ts:26