add support for range requests

Change-Id: I56b546d55167c61f315b3cfa3ad9eee54d85defd