AnonymousRequestProvider
public struct AnonymousRequestProvider : RequestProviding
A RequestProviding
type to a single API host.
Use an AnonymousRequestProvider
for one-off API requests or when you do not care about the API
parameter of the
Request
type.
-
Declaration
Swift
public let baseURL: URL
-
Initialises a new request provider with the provided base URL.
Declaration
Swift
public init(baseURL: URL)
-
Initialises a new request provider with the provided base URL string.
Warning
baseURL
must contain a valid URL.Declaration
Swift
public init(_ baseURL: StaticString)
Parameters
baseURL
A string containing the base URL of the API.