Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rafaelesantos/refds-network

RefdsNetwork is a Swift Package Manager library that provides a simple and elegant way to perform HTTP and WebSocket requests in Swift applications, inspired by libraries like Alamofire.
https://github.com/rafaelesantos/refds-network

http-client protocol refds refds-network refds-shared swift websocket

Last synced: 26 days ago
JSON representation

RefdsNetwork is a Swift Package Manager library that provides a simple and elegant way to perform HTTP and WebSocket requests in Swift applications, inspired by libraries like Alamofire.

Awesome Lists containing this project

README

        

# 📬 Refds Network

[![CI](https://github.com/rafaelesantos/refds-network/actions/workflows/swift.yml/badge.svg)](https://github.com/rafaelesantos/refds-network/actions/workflows/swift.yml)

RefdsNetwork is a Swift Package Manager library that provides a simple and elegant way to perform HTTP and WebSocket requests in Swift applications, inspired by libraries like Alamofire.

## Features

- [x] HTTP requests: GET, POST, PUT, DELETE, etc.
- [x] Support for custom headers.
- [x] Support for query parameters.
- [x] WebSocket requests for real-time communication.
- [x] Easy JSON handling with Codable.
- [x] Asynchronous operations and callbacks for response handling.
- [x] Compatible with iOS, macOS, tvOS, and watchOS.

## Installation

Add this project to your `Package.swift` file.

```swift
import PackageDescription

let package = Package(
dependencies: [
.package(url: "https://github.com/rafaelesantos/refds-network.git", branch: "main")
],
targets: [
.target(
name: "YourProject",
dependencies: [
.product(
name: "RefdsNetwork",
package: "refds-network"),
]),
]
)
```