cli
cli copied to clipboard
Improve streaming heuristics for GraphQL live queries
Hey there, I noticed that the stream detection heuristics can be improved to support graphql live queries.
The following headers are used together to stream the response:
HTTP/1.1 200 OK
Date: Sat, 17 Dec 2022 17:03:00 GMT
access-control-allow-origin: *
connection: keep-alive
content-type: multipart/mixed; boundary="-"
transfer-encoding: chunked
Relevant lines: https://github.com/httpie/httpie/blob/621042a0486ceb3afaf47a013c4f2eee4edc1a1d/httpie/output/writer.py#L164-L170