-
-
Notifications
You must be signed in to change notification settings - Fork 735
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
Add ParseFileHttpBody and ParseCountingFileHttpBody #70
Conversation
b0dbb87
to
c7554b9
Compare
@@ -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 { |
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.
Any reason for this change?
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.
Since parseBody.getContent() will try to create a fileStream in some cases, so we need to throw IOException here.
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.
👍
LGTM |
…rseFileHttpBody Add ParseFileHttpBody and ParseCountingFileHttpBody
@wangmengyan95 updated the pull request. |
ParseFileHttpBody
and testParseCountingFileHttpBody
and testParseHttpBody.getContent()
, right now it should throwIOException
ParseRequest
andParseResponse
fromint
tolong