Skip to content

Add ParseFileHttpBody and ParseCountingFileHttpBody #70

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
Aug 28, 2015

Conversation

wangmengyan95
Copy link
Contributor

  1. Add ParseFileHttpBody and test
  2. Add ParseCountingFileHttpBody and test
  3. Revise ParseHttpBody.getContent(), right now it should throw IOException
  4. Change all size related variables in ParseRequest and ParseResponse from int to long

@@ -212,7 +212,7 @@ public ParseApacheHttpClient(int socketOperationTimeout, SSLSessionCache sslSess
private static class ParseApacheHttpEntity extends InputStreamEntity {
private ParseHttpBody parseBody;

public ParseApacheHttpEntity(ParseHttpBody parseBody) {
public ParseApacheHttpEntity(ParseHttpBody parseBody) throws IOException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since parseBody.getContent() will try to create a fileStream in some cases, so we need to throw IOException here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@grantland
Copy link
Contributor

LGTM

@grantland grantland assigned wangmengyan95 and unassigned grantland Aug 28, 2015
wangmengyan95 added a commit that referenced this pull request Aug 28, 2015
…rseFileHttpBody

Add ParseFileHttpBody and ParseCountingFileHttpBody
@wangmengyan95 wangmengyan95 merged commit af5c573 into master Aug 28, 2015
@wangmengyan95 wangmengyan95 deleted the wangmengyan.t8145272_add_ParseFileHttpBody branch August 28, 2015 23:09
@facebook-github-bot
Copy link

@wangmengyan95 updated the pull request.

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.

3 participants