Parser for ByteRanges

If you think, this should be somewhere else, please suggest where I could put it. Thanks.