Skip to content

This repo provide you a single network class in Swift. It's very helpful when you want to handle API in your SDK or Framework that you don't want your Framework belong to another network framework

License

Notifications You must be signed in to change notification settings

wiosm/Swift-Network-Layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Swift-Network-Layer

This repo provide you a single network class in Swift. It's very helpful when you want to handle API in your SDK or Framework that you don't want your Framework belong to another network framework

How to use?

Just drag Request.swift to your project. You can rename it to your coding convention rule. Then just call

let url = "http://yoururl"

Request().request(withURL: url, method: HTTPMethod.get, params: nil, headers: nil, timeout: 15, encode: nil, onSuccess: { (data) in
// Success , { (error) in
// Fail and errors
})

About

This repo provide you a single network class in Swift. It's very helpful when you want to handle API in your SDK or Framework that you don't want your Framework belong to another network framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages