def headers(headers, end_headers: true, end_stream: false)
      flags = []
      flags << :end_headers if end_headers
      flags << :end_stream  if end_stream

      send(type: :headers, flags: flags, payload: headers)
    end
def headers(headers, end_headers: true, end_stream: false)
      flags = []
      flags << :end_headers if end_headers
      flags << :end_stream  if end_stream

      send(type: :headers, flags: flags, payload: headers)
    end
Sends a HEADERS frame containing HTTP response headers.
 All pseudo-header fields MUST appear in the header block before regular header fields.

 @param headers [Array or Hash] Array of key-value pairs or Hash
 @param end_headers [Boolean] indicates that no more headers will be sent
 @param end_stream [Boolean] indicates that no payload will be sent