def buildRequestBytes(headers, data, frameFactory=None, streamID=1):
 frames = buildRequestFrames(headers, data, frameFactory, streamID)
 return ''.join((f.serialize() for f in frames))

def buildRequestBytes ( headers , data , frameFactory = None , streamID = 1 ) : frames = buildRequestFrames ( headers , data , frameFactory , streamID ) return '' . join ( ( f . serialize ( ) for f in frames ) )
provides the byte sequence for a collection of http/2 frames representing the provided request .