Skip to content

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

Merged
merged 1 commit into from
Jan 2, 2018

Conversation

saiHemak
Copy link
Contributor

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.

@saiHemak
Copy link
Contributor Author

@alblue @pushkarnk @ianpartridge Please review

@pushkarnk pushkarnk changed the title Moving common implementation to Nativeprotocol Moving common implementation to NativeProtocol Dec 26, 2017
@pushkarnk
Copy link
Member

LGTM
@swift-ci please test

@pushkarnk
Copy link
Member

pushkarnk commented Dec 26, 2017

@saiHemak Can you please refine the commit message to something like "Move common protocol implementation to NativeProtocol"

@pushkarnk pushkarnk changed the title Moving common implementation to NativeProtocol Moving common protocol implementation to NativeProtocol Dec 26, 2017
@pushkarnk pushkarnk changed the title Moving common protocol implementation to NativeProtocol Move common protocol implementation to NativeProtocol Dec 26, 2017
@pushkarnk pushkarnk force-pushed the nativeprotocol-message branch 2 times, most recently from db5148b to 56deee0 Compare December 27, 2017 07:11
@pushkarnk
Copy link
Member

@swift-ci please test and merge

@saiHemak saiHemak force-pushed the nativeprotocol-message branch from 56deee0 to a64972a Compare January 2, 2018 05:46
@pushkarnk
Copy link
Member

@swift-ci please test and merge

@saiHemak
Copy link
Contributor Author

saiHemak commented Jan 2, 2018

I am unable to reproduce the build failure locally.NativeProtocol.swift has been included in the build.py file .

@pushkarnk
Copy link
Member

@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

@swift-ci swift-ci merged commit 160cc35 into swiftlang:master Jan 2, 2018
}

override func startLoading() {
NSRequiresConcreteImplementation()
Copy link
Contributor

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.

Copy link
Contributor Author

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 ..

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

Successfully merging this pull request may close these issues.

4 participants