FetchHttpTransport constructor

FetchHttpTransport({
  1. FetchCredentials credentials = FetchCredentials.sameOrigin,
})

A transport on fetch. The browser decides about connections, proxies and certificates; credentials says whether it sends its cookies, which a server that keeps the login in a session cookie needs when the API has another origin than the page.

Implementation

FetchHttpTransport({this.credentials = FetchCredentials.sameOrigin});