StreamingKit icon indicating copy to clipboard operation
StreamingKit copied to clipboard

Support adding custom HTTP headers to the request

Open mmcdole opened this issue 10 years ago • 4 comments

I'd like to be able to stream music from sources that require custom HTTP authorization headers. It would be really great if StreamingKit would expose an overload that would let me a supply a URL and a dictionary of key/value pairs to be used as HTTP headers in the request StreamingKit makes.

You would then be able to stream media that requires OAuth for example.

mmcdole avatar Dec 21 '14 16:12 mmcdole

This would be a great add on. +1

sadhiappan avatar Jan 14 '15 03:01 sadhiappan

In the mean time, It's really easy to do with an NSURLProtocol subclass. You can intercept the request and set the headers.

flagoworld avatar Apr 03 '15 00:04 flagoworld

+1

syrakozz avatar Apr 07 '15 07:04 syrakozz

@flagoworld hey flago, can you expand on this and give an explanation of how this is done?

lightninglu10 avatar Apr 21 '17 08:04 lightninglu10