|
I'm trying to use Dispatch to fetch items in an Android app, displaying them in a variety of ways based on their content-type. In some instances, the type isn't immediately available, so I'd like to do a HEAD request on the URL and retrieve the Content-Type header.
I use <:> to do this, and it works, but according to the logs it is performing a GET request to retrieve the headers. Not only is that not what I want, but some of these files are rather large, meaning sometimes I'm waiting seconds or minutes to get their content-types. This of course generates an ANR, and while I acknowledge that I should move this work into a background thread, it doesn't seem that looking up the content type of an MP3 should have to GET the file first.
Am I missing something in either Dispatch or the HTTP spec? This is under Dispatch 0.7.8.
Thanks.
|