EXTENSION
NetworkTransport
NetworkTransport
public extension NetworkTransport
Properties
headerFieldNameApolloClientName
headerFieldNameApolloClientName
static var headerFieldNameApolloClientName: String
The field name for the Apollo Client Name header
headerFieldNameApolloClientVersion
headerFieldNameApolloClientVersion
static var headerFieldNameApolloClientVersion: String
The field name for the Apollo Client Version header
defaultClientName
defaultClientName
static var defaultClientName: String
The default client name to use when setting up the clientName
property
clientName
clientName
var clientName: String
defaultClientVersion
defaultClientVersion
static var defaultClientVersion: String
The default client version to use when setting up the clientVersion
property.
clientVersion
clientVersion
var clientVersion: String
Methods
addApolloClientHeaders(to:)
addApolloClientHeaders(to:)
func addApolloClientHeaders(to request: inout URLRequest)
Adds the Apollo client headers for this instance of NetworkTransport
to the given request
- Parameter request: A mutable URLRequest to add the headers to.
Parameters
Name | Description |
---|---|
request | A mutable URLRequest to add the headers to. |