swifter
swifter copied to clipboard
Tiny http server engine written in Swift programming language.
**How to load HTML by string?** ``` let server = HttpServer() server[path] = { request in return HttpResponse.ok(.text("")) } server.start() ``` This code is mention in your Doc file. Que...
Hi guys! I'm an experienced developer but a beginner with Swift and iOS, so your help will be very valuable. My iOS app is based on a WKWebView loading some...
according to https://tools.ietf.org/html/rfc6265#section-3 > An origin server can include multiple Set-Cookie header fields in a single response I can use raw to set headers, but header dictionary override old Set-Cookie...
During our integration with CircleCI and support for Linux, we found a test causing problems as it was passing in macOS, tvOS, iOS and failing in Linux. The test includes...
the String extension `sha1` is conflict with [CryptoSwift](https://github.com/krzyzanowskim/CryptoSwift/blob/9284485ecd681b04d17e71383d903b5de33516db/Sources/CryptoSwift/String%2BExtension.swift#L26). there are also many other names in extension may have a potencial collide with other's extension, like `toBase64`. so if these extensions...
The server doesn't support clients that use Transfer-Encoding: chunked with Content-Length set to 0 (or not send at all). After looking at code it appears that socket is left in...
IMO examples are not enough to start serving a web content. I would like to serve a simple static index.html file. As far as i can see we should call...
If I have a test that needs to send a body with a `.badRequest` response, the content-type header is not set correctly. The `headers()` method on `HttpResponse` should evaluate the...
Can this support sending a file via a websocket to a server elsewhere? (i.e., client tests also written in swift) I was looking at the ping example and it looks...
Hello, It happens quite frequently that I do not receive an answer from the Swifter server until the timeout of the client. And if there is no timeout on the...