Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 1.43 KB

File metadata and controls

44 lines (36 loc) · 1.43 KB

HTTP GET Arrow Data: Simple Swift Server Example

This directory contains a minimal example of an HTTP server implemented in Swift. The server:

  1. Creates a record batches and populates it with synthesized data.
  2. Listens for HTTP requests from clients.
  3. Upon receiving a request, sends an HTTP 200 response with the body containing an Arrow IPC stream of record batches. To run this example:
git clone --filter=blob:none --no-checkout --depth 1 --sparse https://github.com/apache/arrow.git
pushd arrow
git sparse-checkout add swift/Arrow
git checkout
popd
mkdir -p vendor/Arrow
mv arrow/swift/Arrow vendor
rm -rf arrow
  1. run:
swift run