Closed wmcginty closed 6 years ago
It definitely would simplify things. I like your suggestion about having a separate builder object. I wouldn't want to remove the functionality completely since I think URL-encoding query parameters is pretty standard stuff that we wouldn't want our projects to rewrite every time.
It seems like one of the biggest complexities that NetworkRequest is currently set up to deal with is the encoding of the URL query. Would it make sense to remove that functionality from NetworkRequest and either create a separate builder object for the request's URL or leave it out of Hyperspace altogether (similarly to how URLRequest does not concern itself with the components of the URL?
It would simplify the NetworkRequest protocol drastically: