Middleware for Vapor 3 to allow serving gzip encoded content. Inspired by https://github.com/vapor-community/gzip-provider
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Package.swift 581 B

12345678910111213141516171819
  1. // swift-tools-version:4.0
  2. import PackageDescription
  3. let package = Package(
  4. name: "GzipMiddleware",
  5. products: [
  6. .library(name: "GzipMiddleware", targets: ["GzipMiddleware"])
  7. ],
  8. dependencies: [
  9. // 💧 A server-side Swift web framework.
  10. .package(url: "https://github.com/vapor/vapor.git", from: "3.0.0"),
  11. // 🤐 Unzip archives
  12. .package(url: "https://github.com/microtherion/ZIPFoundation.git", from: "0.9.9-µ5")
  13. ],
  14. targets: [
  15. .target(name: "GzipMiddleware", dependencies: ["Vapor", "ZIPFoundation"]),
  16. ]
  17. )