This directory contains an example of a Python HTTP server that sends a multipart/mixed response to clients. The server:
multipart/mixed response containing:?include_footnotes is present in the URL).To run this example:
pip install pyarrow python server.py
[!NOTE]
This example uses Python‘s built-inhttp.servermodule. This allows us to implement chunked transfer encoding manually. Other servers may implement chunked transfer encoding automatically at the cost of an undesirable new layer of buffering. Arrow IPC streams already offer a natural way of chunking large amounts of tabular data. It’s not a general requirement, but in this example each chunk corresponds to one Arrow record batch.