swifter
swifter copied to clipboard
Tiny http server engine written in Swift programming language.
Hello, It's been great contributing small fixes to this library (Kudos to @Vkt0r), so I have a slightly more challenging problem now which I'd like to collaborate/contribute as well. Basically,...
Hi I have a question: I am not able to proxy server traffic through Charles as it is running on `localhost`. Charles workaround for machines where localhost traffic cannot be...
I am using swifter for iOS UI testing. My tests setup swifter and with the help of JSON mocked responses I test the UI. Swifter has been working great but...
I tried to load local html as follow: ``` let path = Bundle.main.resourcePath! let server = HttpServer() server["/:path"] = directoryBrowser(path) do { try server.start(9080, forceIPv4: true) print("Server has started (...
Hi everyone I'm currently investigating a crash that happens randomly. My app uses Swifter to receive photos / videos before restoring them via the system API. I have a crash...
I tried Swifter web socket ``` let server = HttpServer() server["/websocket-echo"] = websocket(text: { session, text in print("text: \(text)") session.writeText(text) }) try server.start(8081, forceIPv4: false, priority: .default) ``` since `server.listenAddressIPv4`...
static files appear not to be getting served: ``` let server = HttpServer() server["/files/:path"] = directoryBrowser( PublicDir ) do { let port = 8082 try server.start( in_port_t(port) ) print( "HTTP...
I've seen people struggling to understand how the library works for several cases like loading files, serving responses, etc. (#371, #354, #350). We have some examples in the `DemoServer.swift` and...
Hi, we're planning to use your server instead of `GCDWebServer`, but we need to asynchronously handle requests. This means that, when specifying a request handler, we don't want to immediately...
I'd like to have a route post body associated to a type. Not clear if I need to explicitly handle the body deserialize (i.e. using codable) and error handle myself...