AF.request
instead of Alamofire.request
. We’re still working on the rest of the documentation, so let us know if you have any usage questions, either here or on our Swift Forums.
Encodable
parameters and not just [String: Any]
dictionaries, use those if you can.
feature/initial-combine-support
branch.
AnyDecodable
should only really be necessary for heterogenous collections, not for your response handling.
Single<Data>
where Data could be either an Error or a response's data that will then be decoded afterwards into some sort of object T. However, I'm unsure if this is necessary anymore as unless I'm misunderstanding, publishDecodable attempts to decode via the decoder in that function
sessionToken
that needs to be placed in the header while writing the request? From what I'm seeing, .authenticate
looks like it should handle this, however, the value is not really a SecTrust or a SecIdentity. Previously I'd converted the URLRequestConvertible into a URLRequest, then added the object to the headers in the request, however, I'd like to move away from that if possible
Published
value for it, you can access that value directly to add it to the request.
mutableState.refreshTimestamps
has been emptied out, but I don't see a spot in which this occurs