Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async def araw(self):
stream = ContentStream(await self.acontent)
return (
f"HTTP/{self.http_version}".encode("ascii"),
self.status_code,
b"",
self.headers.raw,
stream,
)
def raw(self):
stream = ContentStream(self.content)
return (
f"HTTP/{self.http_version}".encode("ascii"),
self.status_code,
b"",
self.headers.raw,
stream,
)