Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

AFHTTPRequestSerializer-requestWithMethod:URLString: should take NSURL object #125

Open
sebastianludwig opened this issue Apr 18, 2016 · 0 comments

Comments

@sebastianludwig
Copy link

I might be missing something, but it looks like the above method is only called with [[NSURL ...] absoluteString] and internally calls [NSURL URLWithString:URLString] straight away. What's the reason to jump between NSURL and NSString? Shouldn't be tried to keep the semantically correct data type as long/much/often as possible?

In the current situation one has to do the same NSURL<->NSString dance to use the request serializer.

If you agree, would you accept a PR?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant