Skip to content

Reusable system for complex URL requests with Swift. Deal with query items, HTTP headers, request body and more in an easy, declarative way. Check out our engineering blog to learn more!

License

Notifications You must be signed in to change notification settings

ParableHealth/URLRequestBuilder

Repository files navigation

URLRequestBuilder

Deal with query items, HTTP headers, request body and more in an easy, declarative way

Showcase

let urlRequest = try URLRequestBuilder(path: "users/submit")
    .method(.post)
    .jsonBody(user)
    .contentType(.applicationJSON)
    .accept(.applicationJSON)
    .timeout(20)
    .queryItem(name: "city", value: "San Francisco")
    .header(name: "Auth-Token", value: authToken)
    .makeRequest(withBaseURL: testURL)

About

Reusable system for complex URL requests with Swift. Deal with query items, HTTP headers, request body and more in an easy, declarative way. Check out our engineering blog to learn more!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages