A prototype of FileReceiver.

action item: rename it to HeadersType