NetworkOptions

open class NetworkOptions: ObjectBase

Options for interaction with a data network.

  • A handler for all HTTP requests made by the data service.

    Declaration

    Swift

    final public var httpHandler: HTTPHandler?
  • Should responses be compressed (if this is supported by the client and by the server)? True by default.

    Declaration

    Swift

    final public var compressResponses: Bool = true
  • Should downloads be streamed? Set this to false to force the use of non-streamed downloads. True by default.

    See also

    DataService.downloadMedia, DataService.downloadStream.

    Declaration

    Swift

    final public var streamDownloads: Bool = true
  • Should uploads be streamed? Set this to false to force the use of non-streamed uploads. True by default.

    See also

    DataService.createMedia, DataService.uploadMedia, DataService.uploadStream.

    Declaration

    Swift

    final public var streamUploads: Bool = true
  • Should HTTP verb tunneling be allowed in preference to OData batch requests? Defaults to false.

    Declaration

    Swift

    final public var allowTunneling: Bool = false
  • Which HTTP methods must be tunneled in HTTP POST due to proxy/firewall issues?

    See also

    allowTunneling.

    Declaration

    Swift

    final public var tunneledMethods: StringList = StringList()
  • Which HTTP header can be used for tunneling, if it is required? Defaults to X-HTTP-Method.

    See also

    allowTunneling.

    Declaration

    Swift

    final public var tunnelingHeader: String = "X-HTTP-Method"
  • Default initializer.

    Declaration

    Swift

    override public init()