-
Notifications
You must be signed in to change notification settings - Fork 0
Examples + refinements #3
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
harmon25
wants to merge
41
commits into
main
Choose a base branch
from
example
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
Conversation
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
…for better stability
…ndling for buffer full scenarios
…buffer overflow risk
…add delay in graceful_close for proper buffer drainage
…s and reduce memory allocation; add delays for socket buffer management
…ent closure behavior and add Connection: close header
…racking; increase wait times for socket buffer management
…erbosity; improve error handling in try_send functions
…d accepts_gzip functions for improved file serving
…t times for socket buffer management
…ssion before socket closure
…ing for content length in create_reply function
…g sends; remove redundant logging in create_reply and serve_file functions
…ove response handling and closure logic
…bility and efficiency
…t handling for improved state management
… in a case statement
… in reply handling
…rove error reporting
…enhance error reporting
…oved testing and error handling
…ing for peer closure
- removes jquery,backbone + css file
…emove unused tests and adjust stress test parameters
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.
This pull request introduces a new Elixir example implementation for the AtomVM HTTP server, including a complete web console demo. The changes add a new
elixir_httpproject with HTTP API endpoints, a WebSocket handler for live memory updates, static frontend assets, and documentation. Additionally, improvements to code quality are documented, such as replacing a custom iolist length function with a built-in Erlang function.New Elixir Example Project:
elixir_httpdirectory containing an Elixir-based HTTP server example for AtomVM, including Mix project files, source code, and supporting assets. (.github/copilot-instructions.md .github/copilot-instructions.mdR97)ElixirHttpmodule with network initialization, HTTP server configuration, and endpoint routing (lib/elixir_http.ex).lib/elixir_http/api_handler.ex) for/api/system_infoand/api/memoryendpoints, providing system and memory info.lib/elixir_http/ws_handler.ex) that streams memory updates to clients in real time.Frontend Web Console:
priv/index.html) and JavaScript app (priv/js/app.js) for displaying system and memory info, including live updates via WebSocket. [1] [2]Documentation and Code Quality:
README.md,mix.exs). [1] [2]iolist_lengthfunction with the standarderlang:iolist_size/1BIF for code quality improvement, and added related test coverage. (TODO.md)