Skip to content

Repository files navigation

NetworkLayer

Generic network library for service model protocol, handling networking commons errors.

public typealias Headers = [String: String]

public protocol NetworkService {
    var baseURL: URL { get }
    var path: String { get }
    var method: HTTPMethod { get }
    var task: HTTPTask { get }
    var headers: Headers? { get }
}

Built with URLSession and Codable.

Tested with Quick, Nimble and Dependency Injection of test doubles.

About

Generic network library with services model

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages