Docs
Launch GraphOS Studio


EXTENSION

NetworkTransport

public extension NetworkTransport

Properties

headerFieldNameApolloClientName

static var headerFieldNameApolloClientName: String

The name for the Name header

headerFieldNameApolloClientVersion

static var headerFieldNameApolloClientVersion: String

The name for the Version header

defaultClientName

static var defaultClientName: String

The default client name to use when setting up the clientName property

clientName

var clientName: String

defaultClientVersion

static var defaultClientVersion: String

The default client version to use when setting up the clientVersion property.

clientVersion

var clientVersion: String

Methods

addApolloClientHeaders(to:)

func addApolloClientHeaders(to request: inout URLRequest)

Adds the headers for this instance of NetworkTransport to the given request

  • Parameter request: A mutable URLRequest to add the headers to.

Parameters

NameDescription
requestA mutable URLRequest to add the headers to.
Next
Introduction
Edit on GitHubEditForumsDiscord

© 2024 Apollo Graph Inc.

Privacy Policy

Company