← All examples

Server • Beginner

Hello HTTP with Hummingbird

Spin up a tiny HTTP server in Swift using Hummingbird and respond with JSON.

  • HTTP
  • Server
  • Hummingbird

Initialize a new Swift package using the swift package init --type executable command.

server.swift