{"action":"created","issue":{"url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/3786","repository_url":"https://api.github.com/repos/xamarin/xamarin-macios","labels_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/3786/labels{/name}","comments_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/3786/comments","events_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/3786/events","html_url":"https://github.com/xamarin/xamarin-macios/issues/3786","id":306886712,"number":3786,"title":"Expose an API for session configuration to initialise customised request ","user":{"login":"prince-datami","id":32513171,"avatar_url":"https://avatars1.githubusercontent.com/u/32513171?v=4","gravatar_id":"","url":"https://api.github.com/users/prince-datami","html_url":"https://github.com/prince-datami","followers_url":"https://api.github.com/users/prince-datami/followers","following_url":"https://api.github.com/users/prince-datami/following{/other_user}","gists_url":"https://api.github.com/users/prince-datami/gists{/gist_id}","starred_url":"https://api.github.com/users/prince-datami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prince-datami/subscriptions","organizations_url":"https://api.github.com/users/prince-datami/orgs","repos_url":"https://api.github.com/users/prince-datami/repos","events_url":"https://api.github.com/users/prince-datami/events{/privacy}","received_events_url":"https://api.github.com/users/prince-datami/received_events","type":"User","site_admin":false},"labels":[{"id":779343576,"url":"https://api.github.com/repos/xamarin/xamarin-macios/labels/need-info","name":"need-info","color":"5f53e2","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/xamarin/xamarin-macios/milestones/9","html_url":"https://github.com/xamarin/xamarin-macios/milestone/9","labels_url":"https://api.github.com/repos/xamarin/xamarin-macios/milestones/9/labels","id":2969797,"number":9,"title":"Future","description":"Reviewed but not assigned to a specific milestone","creator":{"login":"spouliot","id":260465,"avatar_url":"https://avatars2.githubusercontent.com/u/260465?v=4","gravatar_id":"","url":"https://api.github.com/users/spouliot","html_url":"https://github.com/spouliot","followers_url":"https://api.github.com/users/spouliot/followers","following_url":"https://api.github.com/users/spouliot/following{/other_user}","gists_url":"https://api.github.com/users/spouliot/gists{/gist_id}","starred_url":"https://api.github.com/users/spouliot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spouliot/subscriptions","organizations_url":"https://api.github.com/users/spouliot/orgs","repos_url":"https://api.github.com/users/spouliot/repos","events_url":"https://api.github.com/users/spouliot/events{/privacy}","received_events_url":"https://api.github.com/users/spouliot/received_events","type":"User","site_admin":false},"open_issues":94,"closed_issues":93,"state":"open","created_at":"2017-12-10T22:47:28Z","updated_at":"2018-04-25T14:10:21Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-03-20T14:21:30Z","updated_at":"2018-04-25T14:10:21Z","closed_at":"2018-04-25T14:10:21Z","author_association":"NONE","body":"Description of the issue:\r\nWe have SDK which sponsors mobile data on the ios device. We intercept the read and write request made by the app to sponsor data. While Creating the DLL for native binding, we are facing the issue that read and write requests for the app are not intercepted because xamarin uses web client which is not exposed or does not expose any API to initialize the session. \r\n\r\n### Steps to Reproduce\r\n\r\n1. Create an app which makes network requests.\r\n2. Try to intercept the request or response before sending it to the app and vice versa. \r\n3. Our SDK needs to imbibe the first network request made by the app. In xamarin, the same feasibility is achieved by using WebClient which needs to expose an API to initialize the request/ session.\r\n\r\n### Expected Behavior\r\nOnce we have the API to configure the request made by the app, we can use our solution to bind the network calls. \r\n\r\n### Actual Behavior\r\nThere is no way we can intercept the request, Xamarin has its own wrapper over the NSURLSession which takes care of the network request. It needs to expose one such API which will allow us to intercept the request. \r\n\r\n### Environment\r\niOS. \r\n<!--\r\n1.\r\nVisual Studio: Help > About Microsoft Visual Studio > Copy Info [button]\r\nVisual Studio for Mac: Visual Studio > About Visual Studio > Show Details > Copy Information [button]\r\n\r\n2. Paste into the code block below (between ```)\r\n-->\r\n\r\n```\r\nThe code is a framework solution, We can provide the DLL if needed. \r\n```\r\n\r\n### Build Logs\r\n\r\n<!--\r\n1. Place cursor below this comment block.\r\nThe build is successful for creating DLL and the native binding is successful.\r\n2. Attach build log or link to gist (https://gist.github.com/) of the log.\r\n-->\r\n\r\n### Example Project (If Possible)\r\n\r\n<!--\r\n1. Place cursor below this comment block.\r\n\r\nI have used AsynchronousImageDownload sample app for testing the same. \r\n\r\n2. Drag and drop the compressed project or files needed to reproduce.\r\n-->\r\n\r\n<!--\r\nSwitch to the \"Preview\" tab to ensure your issue renders correctly.\r\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/comments/384300753","html_url":"https://github.com/xamarin/xamarin-macios/issues/3786#issuecomment-384300753","issue_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/3786","id":384300753,"user":{"login":"therealjohn","id":1501196,"avatar_url":"https://avatars1.githubusercontent.com/u/1501196?v=4","gravatar_id":"","url":"https://api.github.com/users/therealjohn","html_url":"https://github.com/therealjohn","followers_url":"https://api.github.com/users/therealjohn/followers","following_url":"https://api.github.com/users/therealjohn/following{/other_user}","gists_url":"https://api.github.com/users/therealjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/therealjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/therealjohn/subscriptions","organizations_url":"https://api.github.com/users/therealjohn/orgs","repos_url":"https://api.github.com/users/therealjohn/repos","events_url":"https://api.github.com/users/therealjohn/events{/privacy}","received_events_url":"https://api.github.com/users/therealjohn/received_events","type":"User","site_admin":false},"created_at":"2018-04-25T14:10:21Z","updated_at":"2018-04-25T14:10:21Z","author_association":"CONTRIBUTOR","body":"We have not received the requested information. If you are still experiencing this issue please provide all the requested information then click the Reopen Issue button. Thanks!"}}
{"actor":{"display_login":"therealjohn"}}