swift-request icon indicating copy to clipboard operation
swift-request copied to clipboard

Declarative HTTP networking, designed for SwiftUI

Results 8 swift-request issues
Sort by recently updated
recently updated
newest added

Resolves #63. This is hidden behind `#if swift(>=5.5)` to ensure it still builds on older Xcode versions.

Ive stumbled upon a case where my server returned a partially formed body that doesnt include a key. I see no way in the api to safely access a subscript...

The basic idea is that you can await any `Request` using `call()`: ```swift let getTodos = AnyRequest { Url("todos.com/api") } let todos = try await getTodos.call() ``` `callAsFunction` could also...

enhancement

Currently, `RequestView` only supports `Data?` as a return type. This enhancement is to allow `Json?` and `String?` as responses as well by adding more initializers: ```swift RequestView(myRequest) { (data: Data?)...

enhancement

## `Socket` Web socket support is a large task, so it may be a while. Here's an example of what the syntax could look like: ```swift let ws = Socket...

enhancement

Title says it all. 65% is not very good.

I've done some looking and dont see any way to do what URLSessionTaskDelegate enables. ```func urlSession( _ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64 )``` Im...