-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Move common protocol implementation to NativeProtocol #1377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@alblue @pushkarnk @ianpartridge Please review |
LGTM |
@saiHemak Can you please refine the commit message to something like "Move common protocol implementation to NativeProtocol" |
db5148b
to
56deee0
Compare
@swift-ci please test and merge |
56deee0
to
a64972a
Compare
@swift-ci please test and merge |
I am unable to reproduce the build failure locally. |
@saiHemak I've kicked off a build again. If it fails may be we need to cleanup the workspace and re-trigger. Let's wait and watch |
} | ||
|
||
override func startLoading() { | ||
NSRequiresConcreteImplementation() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit: In your next PR, could you make sure to fix the indentation here and in the method below? They should be indented by four spaces, not three.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thanks ! Actually, the concrete implementation of StartLoading will be moved here from HTTPURLProtocol
. This is just a placeholder for now ..
Moving protocol agnostic implementation under NativeProtocol.
eg: Header parsing code is common to HTTP and FTP.In both cases the HEADERS are split based on CRLF characters.
HTTPURLProtocol.swift has some common implementation which will be moved to NativeProtocol.swift in the next PR.