Closed sprzenus closed 4 years ago
The programmer should be able to use custom URLSession if he wants to. The default session is URLSession.shared and it will be used if not specified.
URLSession.shared
This modifier should be a member of the RestlerRequest protocol with the same implementation for each Request subtype.
RestlerRequest
restler.get("profile") .decode(Profile.self) .using(session: .shared) // Set session to use .subscribe(...) // or rx
General Description
The programmer should be able to use custom URLSession if he wants to. The default session is
URLSession.shared
and it will be used if not specified.Implementation Details
This modifier should be a member of the
RestlerRequest
protocol with the same implementation for each Request subtype.