Callback that takes as a parameter the HttpURLConnection connection object. It will be called just before making a request, so it is a suitable place to add custom headers.
Returns
HttpURLConnection object after a connection has been made.
You can use the return value to check the status code, and to read the output if relevant.
Please be sure to close the connection as you normally would.
Throws
IllegalAccessException if SuperTokens.init has not been called or if the Application object provided to the init function is null.
IOException if any of the operations on the connection fail.