The withResponse<T>(_ type: T.Type) -> Request<T> method carries the comment:
Changes the response type keeping the rest of the request parameters.
Based on this I assume I ran in to a bug — because the request method may also be altered.
withResponse uses a private Initializer to create copy of the request with the updated return type. This initializer ignores the given method parameter and always sets the request to use the .get method.
The
withResponse<T>(_ type: T.Type) -> Request<T>
method carries the comment:Based on this I assume I ran in to a bug — because the request method may also be altered.
withResponse
uses a private Initializer to create copy of the request with the updated return type. This initializer ignores the givenmethod
parameter and always sets the request to use the.get
method.This PR also includes a comment spelling fix.