-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introducing RequestCreator protocol #771
Introducing RequestCreator protocol #771
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks from the failures like you'll need to update the tests to use the ApolloRequestCreator
instance rather than the RequestCreator
static methods
@kimdv I think you missed a couple in the websocket tests |
Should be fixed! |
public let originalName: String | ||
public let mimeType: String | ||
public let inputStream: InputStream | ||
public let contentLength: UInt64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those fields need to be public if users have to make things like
files.forEach {
formData.appendPart(inputStream: $0.inputStream, contentLength: $0.contentLength, name: $0.fieldName, contentType: $0.mimeType, filename: $0.originalName)
}
This will ship with 0.16.0 (hopefully early next week) |
This will make it possible to modify how requests are created.
Useful in file uploads as the specs can be different from framework to framework