swifter icon indicating copy to clipboard operation
swifter copied to clipboard

Tiny http server engine written in Swift programming language.

Results 123 swifter issues
Sort by recently updated
recently updated
newest added

this commit avoid escaping twice for query already escaping

Fixes #488. When we reache the `**` node we're at the path segment it is going to match against. The `currentIndex` is incremented on [line 125](https://github.com/httpswift/swifter/blob/stable/Xcode/Sources/HttpRouter.swift#L125) which means that we're...

``` let httpServer = demoServer(Bundle.main.resourcePath!) httpServer["/:path"] = shareFilesFromDirectory(Bundle.main.path(forResource: "Web", ofType: nil)!) let port = 9080 do { try httpServer.start(in_port_t(port)) } catch { printLog("error: \(error)") return } let myRequest = URLRequest(url:...

Hi, I have an issue using .raw response with keep alive header: the socket is closed cause .raw content length cannot be anything but -1 (even if i actually write...

is it possible to use swifter via hotspot without wifi router?

Hi, I currently this snippet ``` serverInstance["/mobile"] = { request in { print("In Mobile") var html = "Hello World!" if let indexURL = Bundle.main.url(forResource: "index", withExtension: "html", subdirectory: "app") {...

we like to add a header to existing response and have to use .raw and implement everything that .ok .json does.

Hi, I have a problem where the APIs I'm dealing with contain multiple paths which overlaps. For example, I have | Method | path | Swifter path expression | |...

In my application, there are a lot of calls to the backend and using stubs for everyone is impossible. Therefore, I wanted to send most of the requests for a...

Would like it if the keys in the params dictionary had the leading ':' stripped from them. So currently, route `/a/:myVar/c` maps `/a/b/c` to a `params` dictionary of `[":myVar": "b"]`....