TargetType
can now be implemented via extension to aProductionTargetType
in a separate target
- Support to Swift 4.2 (still works with Swift 4.1)
ProductionStub
enum, similar toStub
but not containing adefault
case
TargetType
was split into 2 protocols, whereTargetType
is now a sub-protocol ofProductionTargetType
ProductionTargetType
does not requiresampleData
and usesProductionStub
- Support to "all" (?) HTTP methods (all methods included in HTTP/1.1 spec, section 4.3, plus PATCH)
- Support to specify HTTP body
- API example in the Tests target
Task
is now a struct instead of an enum. The HTTP method, body and query parameters are defined in a Task.method
is not a requirement forTargetType
anymore (embedded in Task)