Edge

public final class Edge

Network client responsible for executing Task

  • Creates an instance with specific Session and Queue

    Declaration

    Swift

    public init(with session: Session, queue: Queue)

    Parameters

    session

    The underlying session

    queue

    The underlying queue

    Return Value

    The new Edge instance.

  • Creates an instance with specific URL

    Declaration

    Swift

    public convenience init(with url: URL)

    Parameters

    url

    The base URL to build future requests

    Return Value

    The new Edge instance.

  • Creates an instance with a valid URL from String

    Declaration

    Swift

    public convenience init(with baseURL: String)

    Parameters

    baseURL

    The base URL string to build future requests

    Return Value

    The new Edge instance.

  • Run all requests enqueue

    Declaration

    Swift

    public func start()
  • Pause all requests enqueue

    Declaration

    Swift

    public func stop()
  • Reset all plugins and requests

    Declaration

    Swift

    public func reset()