Contents

alephao/swift-http-types-htmx

swift-http-types extensions for htmx

Examples

There is an example project of a server using the Hummingbird Framework with a few exampels on how to use HTMX response headers to drive the application.

There are also tests for all handlers, demonstrating how this library can be used to mock HTMX requests for testing purposes.

Installation

Add the dependency to Package.swift

dependencies: [
  .package(url: "https://github.com/alephao/swift-http-types-htmx.git", from: "0.3.0")
],

Add the products you want to use to the target dependencies

.target(
  name: "MyTarget",
  dependencies: [
    .product(name: "HTTPTypesHtmx", package: "swift-htmx"),
  ]
)

Package Metadata

Repository: alephao/swift-http-types-htmx

Stars: 18

Forks: 0

Open issues: 0

Default branch: main

Primary language: swift

License: MIT

Topics: htmx, server, swift, swift-http-types

README: README.md