-
Notifications
You must be signed in to change notification settings - Fork 20
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
Replacing Grizzly with lightweight HTTP server #26
Open
jtulach
wants to merge
47
commits into
apache:master
Choose a base branch
from
jtulach:AnyHttpServer
base: master
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.
Open
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
6cf8cc4
Abstracting away dependency on Grizzly HTTP server
jtulach 7fe213d
Implementing simple HTTP server from scratch
jtulach f8462d0
Using server provider factory
jtulach 717f4e1
Consistent implementation of getRequestURI for both servers
jtulach cf1ca6b
Consistent access to request parameters
jtulach 2223e8e
Content-Type, encoding, server name and server port
jtulach 933ff41
Passing thru the CORS attributes
jtulach 00376a9
Recognizing GET and HEAD methods
jtulach da7300a
Proper implementation of getReader(request)
jtulach 3736820
Support for suspend/resume of a request
jtulach 2cc1db0
Initialization finishes in other thread and has to suspend the request
jtulach ee79b72
close the writer and close the stream when data are dumped
jtulach 96f4e98
Running the BrowserTest with both server implementations
jtulach f6d0a56
Using the unified ServerFactories infrastructure
jtulach 5b4526f
Moving @JavaScriptBody methods into own class
jtulach 825a4f6
Compile on JDK11 and run on JDK8
jtulach aa97abc
Transfer parameters in the body of the request
jtulach da74643
Ready to receive long request body
jtulach 7016151
Sort the registered handlers from longest to shorter, more generic
jtulach 6d02c0f
Return correct method name
jtulach fa8b1f1
Cannot cache Fn objects when running in multiple contexts
jtulach 70bf13a
Merge remote-tracking branch 'origin/master' into AnyHttpServer
jtulach 7ba2868
Making Simple server the default
jtulach 5f02bdf
Display currently running test name
jtulach f0fb3cc
Using Files.probeContentType to find right MIME type for JavaScript a…
jtulach 6d000e1
Proper handling of HTTP status code
jtulach 9923de8
Removing unnecessary abstractions
jtulach bbc6b87
Unify request and response object
jtulach e30f5fc
Suspend writing operations when the request is suspended
jtulach 1bfa138
Debugging mode has to be requested explicitly in the Browser.Config
jtulach 3a1d777
Let the HttpServer handle the dispatch of Runnables
jtulach 812e889
Capture the initialization protocol and print it out in case of failure
jtulach 9c1c5f6
Moving the JavaScriptBody methods to utilities class
jtulach d3befb4
Merge remote-tracking branch 'origin/master' into AnyHttpServer
jtulach eea8f75
Merge branch 'AnyHttpServer' of https://github.com/jtulach/netbeans-h…
jtulach d71c967
No need for language parser
jtulach dfb2de8
Grizzly doesn't work with Internet Explorer 11 - simple server does
jtulach aec744a
Match both: text/javascript as well as application/javascript
jtulach 64bc0c4
Merging with most recent changes
jtulach 531c6e9
Support OPTIONS method
jtulach d8387e0
Better synchronization of the simple server
jtulach e47a369
Parse even bogus URL parameters
jtulach 821be96
Removing useless @throws tag
jtulach d2d8501
Response characters are uniformly converted to bytes in US-ASCII enco…
jtulach e528510
Use URLDecoder to parse the % signs in URLs
jtulach 84a0761
Merge remote-tracking branch 'origin/master' into AnyHttpServer
jtulach 9bc1429
Allow the random number generator to be specified externally
jtulach 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 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 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.
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.
By default selects
SimpleServer
- change toGrizzlyServer
to try that one. Plus, as pointed by Matthias, one has to add Grizzly on classpath - currently the grizzly modules only available for compilation & tests - e.g. theprovided
scope.