A networking library made using Swift
on top of URLSession
, this allows to quickly setting up network layer in any application and move faster.
- Ability to make network calls (GET,POST)
- Ability to cancel the network requests
- Ability to set default headers and authorization
- Ability to pass codables and decoded accordingly
- Advanced logging support
- Adding middlewares
- Adding interceptors
import Blaze
Blaze.initialise(with: <base_url_here>)
Blaze.setDefaultHeader(<headers_here>)
// if you have auth
Blaze.setAuthorization(<token_here>)
// to make get call
Blaze.get("/endpoint", completion)
This is how to use this module in order to make network request
Made with ❤️ using Swift