src/http/middleware/set-defaults.js
function setDefaults ({ headers={}, overrideHeaders=false, ...rest }) {
  return {
    ...DEFAULTS,
    headers: overrideHeaders ? headers : { ...DEFAULT_HEADERS, ...headers },
    ...rest,
  }
}
function setDefaults ({ headers={}, overrideHeaders=false, ...rest }) {
  return {
    ...DEFAULTS,
    headers: overrideHeaders ? headers : { ...DEFAULT_HEADERS, ...headers },
    ...rest,
  }
}
function setDefaults ( { headers = { } , overrideHeaders = false , ... rest } ) { return { ... DEFAULTS , headers : overrideHeaders ? headers : { ... DEFAULT_HEADERS , ... headers } , ... rest , } }
Sets default request options
Sets default request options