-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Node.js support for js-httpclient. #791
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi, @EltonZhong. Thanks for the PR. |
e5l
reviewed
Dec 14, 2018
ktor-client/ktor-client-core/ktor-client-core-js/src/io/ktor/client/engine/js/JsClientEngine.kt
Outdated
Show resolved
Hide resolved
e5l
reviewed
Dec 14, 2018
ktor-client/ktor-client-core/ktor-client-core-js/src/io/ktor/client/engine/js/JsClientEngine.kt
Outdated
Show resolved
Hide resolved
e5l
reviewed
Dec 14, 2018
...or-client-core/ktor-client-core-js/src/io/ktor/client/engine/js/compatible/node/NodeUtils.kt
Show resolved
Hide resolved
e5l
reviewed
Dec 14, 2018
...or-client-core/ktor-client-core-js/src/io/ktor/client/engine/js/compatible/node/NodeUtils.kt
Outdated
Show resolved
Hide resolved
e5l
reviewed
Dec 14, 2018
ktor-client/ktor-client-core/ktor-client-core-js/src/io/ktor/client/engine/js/JsUtils.kt
Outdated
Show resolved
Hide resolved
e5l
reviewed
Dec 14, 2018
...or-client-core/ktor-client-core-js/src/io/ktor/client/engine/js/compatible/node/NodeUtils.kt
Show resolved
Hide resolved
e5l
reviewed
Dec 14, 2018
...client/ktor-client-core/ktor-client-core-js/src/io/ktor/client/engine/js/compatible/Utils.kt
Outdated
Show resolved
Hide resolved
e5l
reviewed
Dec 14, 2018
ktor-client/ktor-client-core/ktor-client-core-js/src/io/ktor/client/engine/js/compatible/Env.kt
Outdated
Show resolved
Hide resolved
e5l
requested changes
Dec 14, 2018
ktor-client/ktor-client-core/ktor-client-core-js/src/io/ktor/client/engine/js/compatible/Env.kt
Outdated
Show resolved
Hide resolved
You're in the right way. There are some minor issues to fix and then we could accept it. |
Thank you. I'll work on it. :) |
Hi @e5l , the modifications have been done. Could you please review it? Thank you. |
cy6erGn0m
reviewed
Dec 14, 2018
ktor-client/ktor-client-core/ktor-client-core-js/src/io/ktor/client/engine/js/ReadableStream.kt
Outdated
Show resolved
Hide resolved
e5l
approved these changes
Dec 15, 2018
schleinzer
pushed a commit
to schleinzer/ktor
that referenced
this pull request
Feb 26, 2019
* Modify js client to suite node and browser * Compatible lib to support browser and node * Impl node.js getting buffer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Node.js support for js-httpclient.
So could you provide the information for how to ran the js tests?
And I run the compiled js file, found something like this, but I don't get why "Failed to fetch" should occur.
But when I test the client in my project, I find the it works well in node.js environment.
Hope to recieve comments from you :)