Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/rafaelesantos/refds-network
- Owner: rafaelesantos
- License: mit
- Created: 2024-03-19T22:19:37.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-10-21T00:31:56.000Z (3 months ago)
- Last Synced: 2024-10-21T03:55:54.873Z (3 months ago)
- Topics: http-client, protocol, refds, refds-network, refds-shared, swift, websocket
- Language: Swift
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 PackageDescriptionlet 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"),
]),
]
)
```