Http.swift icon indicating copy to clipboard operation
Http.swift copied to clipboard

A tiny HTTP server engine written in swift.

Results 7 Http.swift issues
Sort by recently updated
recently updated
newest added

Trying to intercept all routes: ``` server.get("/.*") { req -> Response in return Response.ok("Got it") } ``` doesn't work. Seems to be a bug in `Regex` L23: `(1..

Hi, In the source code, the iOS13 deprecated API is used for SSL/TLS. Has any plan to upgrade the framework? Thanks.

```swift func Webserver(){ let server = Server() server.get("/hello/{id}") { request in request.headers = ["Server":"aichy","4":"12"] print(request.queryParams["state"]!) return .ok(request.routeParams["id"]!) // return } server.get("/"){ request in request.headers = ["Server":"ios","test":"headers"] return .ok("hello world! ")...

question
feature request

In HTTP, headers are case _in_-sensitive, however Http.swift treats them as case-sensitive. This means, for example, when sending a `POST` to an Http.swift server with a `content-length` header, no body...

When I try to serve big files the server fails to serve them, Can any one fix this?

I want to connect http.swift with a directory, is it possible?

How can we start HTTPS server?