Pass response headers to ResultIterator
support patch in the backend
Merge branch 'response-headers'

* response-headers:
  Pass response headers to ResultIterator