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

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

@sebastianludwig

Description

@sebastianludwig

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions