-
Notifications
You must be signed in to change notification settings - Fork 57
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
Session and task descriptions #286
Session and task descriptions #286
Conversation
Provides an optional `sessionDescription` to the `URLSessionClient` initializer. If provided this will be added to the underlying `URLSession` to aid in debugging. See: https://developer.apple.com/documentation/foundation/urlsession/1408277-sessiondescription
Provides an optional `taskDescription` to `URLSessionClient.sendRequest(_:_:_:_:)`. If provided this will be added to the returned `URLSessionTask` where it can be used for debugging purposes. See: https://developer.apple.com/documentation/foundation/urlsessiontask/1409798-taskdescription Note: Not to be conflated with the `taskIdentifier`.
@hishma: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/ |
👷 Deploy request for eclectic-pie-88a2ba pending review.Visit the deploys page to approve it
|
👷 Deploy request for apollo-ios-docc pending review.Visit the deploys page to approve it
|
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.
This seems good to me! Thanks for the addition and for adding tests for it!
Actually, this may be a breaking change this way since I can make those changes though. |
This pull request updates the Apollo
URLSessionClient
adding the ability to optionally provide a session description and/or task description to theURLSession
, and any subsequentURLSessionTask
’s created by the session.These are helpful when debugging, especially when analyzing HTTP traffic with Instruments.
See also: