Repository navigation
Releases: Astrian/swift-async-network
Releases · Astrian/swift-async-network
Release list
New instance feature, authentication support, and multiple minor new features
- Support instantiation. You can create a SAN instance to share configurations (base URL, headers, authentications, etc.) across requests. Instance can also passed between different structs via Swift environment objects feature.
- Make authentication easier. You can use a username and password combination to construct a
Basicauth or pass in a token for aBearerone — no manualAuthorizationheader is needed. - Shortcut methods update. You can emit a request by
SAN.PUT()as well asSAN.DELETE()instead of usingSAN.request("PUT"). This feature is also available in instance. - Readme update.