GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feather-examples/storage/file-streaming-backend at main · feather-framework/feather-examples

Expand file tree

/

file-streaming-backend

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

file-streaming-backend

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sources/Server
Sources/Server
 
 
Package.resolved
Package.resolved
 
 
Package.swift
Package.swift
 
 
README.md
README.md
 
 
try-file-streaming.sh
try-file-streaming.sh
 
 

README.md

Outline

file-streaming-backend

Minimal backend implementing the file-streaming-openapi contracts with local Feather storage drivers.

Endpoints

  • PUT /upload
    • Request: application/octet-stream
    • Response: 201, JSON body { "receivedBytes": <int> }
    • Header: Transfer-Encoding: chunked
  • GET /download
    • Response: 200, application/octet-stream
    • Header: Transfer-Encoding: chunked

The server stores uploaded bytes to one configured storage object key and returns that object on download.

Dependencies

  • Local package paths:
    • ../feather-storage
    • ../feather-storage-fs
  • Runtime framework:
    • Hummingbird

Configuration

Environment variables or .env.development:

  • HTTP_HOST (default from Hummingbird)
  • HTTP_PORT (default from Hummingbird)
  • LOG_LEVEL (default: info)
  • STORAGE_PATH (default: ./storage)
  • STORAGE_OBJECTKEY (default: upload.bin)

Run

cd /Users/tib/vibestorage/file-streaming-backend
swift run Server
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.