Skip to content

A custom URLSession for logging network activity into the console.

Notifications You must be signed in to change notification settings

tonezone6/urlsession-logged

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

42 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

URLSession logged

A custom URLSession for logging network activity into the console.

URLSession.logged(.basic)

There are two available output levels: basic and detailed.

Basic

πŸš€  GET https://users-endpoint.com/user
βœ…  200 https://users-endpoint.com/user 

Detailed

πŸš€  POST https://users-endpoint.com/user
    "Content-Type" : "application/json"
    {
        "foo" : "Foo",
        "bar" : "Bar"
    }

βœ…  200 https://users-endpoint.com/user 
    {
        "id" : 25918204,
        "name" : "John Doe"
    }
    
⛔️  -999 https://users-endpoint.com/user
    timeout

About

A custom URLSession for logging network activity into the console.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages