Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 1.58 KB

File metadata and controls

45 lines (37 loc) · 1.58 KB

HTTP GET Arrow Data: Simple Swift Client Example

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

  1. Sends an HTTP GET request to a server.
  2. Receives an HTTP 200 response from the server, with the response body containing an Arrow IPC stream record batch.
  3. Prints some of the record batches attributes and data to the terminal

To run this example, first start one of the server examples in the parent directory, then:

  1. download and copy Apache Arrow Swift's Arrow folder into the vendor/Arrow folder:
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