NetworkTransport
EXTENSION
NetworkTransport
Swift
1public extension NetworkTransportProperties
headerFieldNameApolloClientName
Swift
1static var headerFieldNameApolloClientName: StringThe field name for the Apollo Client Name header
headerFieldNameApolloClientVersion
Swift
1static var headerFieldNameApolloClientVersion: StringThe field name for the Apollo Client Version header
defaultClientName
Swift
1static var defaultClientName: StringThe default client name to use when setting up the clientName property
clientName
Swift
1var clientName: StringdefaultClientVersion
Swift
1static var defaultClientVersion: StringThe default client version to use when setting up the clientVersion property.
clientVersion
Swift
1var clientVersion: StringMethods
addApolloClientHeaders(to:)
Swift
1func 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. |