Skip to content

avijeetpandey/Blaze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blaze 🎉 🚀

A networking library made using Swift on top of URLSession, this allows to quickly setting up network layer in any application and move faster.

Features

  • 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

In process

  • Advanced logging support
  • Adding middlewares
  • Adding interceptors

How to use

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

Releases

No releases published

Packages

No packages published

Languages