-
Notifications
You must be signed in to change notification settings - Fork 82
Added Webclient, refactored Webserver to share streamed body sending and receiving logic. #2771
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
Draft
jurgenvinju
wants to merge
69
commits into
main
Choose a base branch
from
feat/webclient
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
10d71ba
added initial webclient API that mirrors the Webserver API and uses t…
jurgenvinju 645d334
cleanup and added POST method
jurgenvinju 61cadea
added the other methods
jurgenvinju 6cce6de
added progress bar
jurgenvinju 17723ff
fixed post
jurgenvinju b9c1e6e
constructor typo
jurgenvinju 8c9c0da
fix post bug
jurgenvinju ddf4bfa
added path to other requests kinds but GET and POST
jurgenvinju 6b37e74
Merge branch 'main' into feat/webclient
jurgenvinju 53ae8a0
started rewrite of Server and Client interface to canonically treat a…
jurgenvinju cd8bdda
big cleanup of Webclient, but Webserver is broken now and I still hav…
jurgenvinju 8c51344
debugging with @davylandman
jurgenvinju 748dcc7
linked up the Subscription API as well to complete the stream
jurgenvinju ae4eefe
improving error handling of common mistakes in the client
jurgenvinju 9f7b1b5
factored out Writer-based suppliers
jurgenvinju 06b20ad
added asserts to diagnose possible race
jurgenvinju e1f8367
error handling for bad URLs
jurgenvinju 76abafe
removed dead use of parameter
jurgenvinju bee60e8
this seems to have fixed the race
jurgenvinju 345585e
comments
jurgenvinju 548aac6
deal with null messages of IOException generally
jurgenvinju db4c552
fixed off-by-one in download progress
jurgenvinju 0ad2cb2
rewrote the webserver side to accept the new Body constructors send a…
jurgenvinju c1ffd9e
server is working again
jurgenvinju 0f450c2
added xml and html sending and receiving, only server side reception …
jurgenvinju 73f21f0
refactoring that factors common WriterToInputStream functionality int…
jurgenvinju f9416a0
fixing issues with module management in client and server
jurgenvinju 7bc2ee5
rationalized JSON options
jurgenvinju 50faa40
cleanup of Webservice module and added some example usages
jurgenvinju 111d4f4
linked charset parameter of POST and PUT bodies
jurgenvinju 8123624
finished charset and mimetype propagation to POSt and PUT headers
jurgenvinju c969047
wired server side mimeType and response for bodies
jurgenvinju 6a047d3
fixed copy/paste bug
jurgenvinju c0311de
fixed switch case missing break bug
jurgenvinju 58c5ff2
added missing file
jurgenvinju 49c6a4e
added more headers
jurgenvinju b9a1c6a
Merge branch 'main' into feat/webclient
jurgenvinju c9134db
fixing more comments by @davylandman
jurgenvinju fe1b7a0
wrote a test server that does not lock the interpreter but does use a…
jurgenvinju 6869703
some fixes. not yet working
jurgenvinju 0304c83
test servers are working
jurgenvinju 9018c05
writing first good tests. they still fail
jurgenvinju 223ea5e
fixing things one-by-one
jurgenvinju 9953b5e
fixed sloppy NPEs
jurgenvinju 98e32c4
fixed content-type for POST and PUT bodies in client
jurgenvinju e4f2434
big rewrite to Undertow modern HTTP server in Java, removed clone of …
jurgenvinju 97fca4d
cleaning up
jurgenvinju 6573779
one more compilation error
jurgenvinju 3021254
fixed some warnings to get overview back
jurgenvinju 0b96380
bumped to Java 17 because Undertow requires it
jurgenvinju 6fb2d38
solved issues with new yield keyword in Java 17
jurgenvinju 9464ac0
bumped action workflow to Java 17
jurgenvinju d3031ad
fixing stuff after jump to Java 17
jurgenvinju f86e26e
some more fixes to get the server working again. almost there
jurgenvinju 2dd1a67
fixes and cleanup
jurgenvinju f07d333
can call test server with builtin client
jurgenvinju d008c72
fixed sending and receiving HTMLElement instances over http (client/s…
jurgenvinju 78ddeef
added XML roundtrip testing
jurgenvinju faec97e
fixed XML roundtripping
jurgenvinju aa64b22
added HTMLOptions for later use by requests
jurgenvinju 3f2dcb0
rationalized and finished JSON options
jurgenvinju e45b380
threaded HTML options
jurgenvinju bb3ffd0
streamed XML options too
jurgenvinju db2fbfa
added xmlOptions to BodyKind
jurgenvinju 434fcea
enabled automatic port allocation for util::Webserver
jurgenvinju 155ebaa
added precision parameter
jurgenvinju 1e91b7f
added precision parameter
jurgenvinju 2ace0d9
workaround
jurgenvinju 9219d22
a rather difficult merge
jurgenvinju File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
this is superfluous now