async for part in response.stream():
...
```
Raw data without gzip/deflate/brotli decompression applied:
```python
http = httpcore.ConnectionPool()
response = await http.request(method, url, stream=True)
async for part in response.raw():
...
```
## Building a Gateway Server
The level of abstraction fits in really well if you're just writing at
the raw ASGI level. Eg. Here's an how an ASGI gateway server looks against the
query = scope['query_string']
method = scope['method']
headers = [
(k, v) for (k, v) in scope['headers']
if k not in (b'host', b'content-length', b'transfer-encoding')
if k not in (b'host', b'transfer-encoding')
]
url = self.base_url + path
if query:
'status': response.status_code,
'headers': response.headers
})
data = b''
async for next_data in response.stream():
async for next_data in response.raw():
if data:
await send({
'type': 'http.response.body',
'body': data,