Skip to content

0.1.0 - Initial release of NetworkKit - a lightweight, type-safe networking library for Swift using the Request Object Pattern.

Choose a tag to compare

@vmrchnk vmrchnk released this 20 Feb 21:24
· 13 commits to main since this release

Features

  • Request Protocol - Type-safe API requests with compile-time response type checking
  • NetworkClient - Configurable client with async/await support
  • NetworkClientConfiguration - Base URL and default headers configuration
  • HTTPMethod - Support for GET, POST, PUT, PATCH, DELETE methods
  • Query & Body encoding - Automatic JSON encoding for request body and query parameters
  • Error Handling - Comprehensive NetworkError enum with retryable error detection
  • Logging - Built-in request/response logging with NetworkLogger

Example App

Includes a weather app example demonstrating:

  • Geocoding API integration
  • Weather API integration
  • Request execution with async/await