Skip to content

Refds Network 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.

License

Notifications You must be signed in to change notification settings

rafaelesantos/refds-network

Repository files navigation

Refds Network

CI

Refds Network 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

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

Installation

Add this project to your Package.swift file.

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"),
            ]),
    ]
)

About

Refds Network 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.

Topics

Resources

License

Stars

Watchers

Forks

Languages