reneweb / hulk Goto Github PK
View Code? Open in Web Editor NEWHulk is a web framework to create RESTful API's.
License: Apache License 2.0
Hulk is a web framework to create RESTful API's.
License: Apache License 2.0
Currently when using mustache templates it is required to pass the template itself as a string. It would be nice to have an option to pass in some file/path object and then read the template from the given file.
Currently there are three different types of action, which are Sync/Async/WebSocket action. It is not possible to implement filters for WebSocket actions and having Sync and Async actions makes it complex to create filters. I wouldn't mind dropping Sync action as most of the time people will use async anyway and there is Future.successful if you have some sync result and want to pass it to async action. There is still a question though how to enable filters for websocket action.
Currently we wouldn't send a cancel message when a filter is used that filters the response and thus the user has no chance to act on this (for example removing it from a list)
Currently there is nothing provided that parses x-www-form-urlencoded requests into a nice format. It is still possible to get the raw bytes or as plain text, but it would be much nicer to have an appropriate structure.
Currently the test coverage is ~63%. It should be at least above 70, better yet 80%.
The mustache template engine that is used requires that all the data structures used are java collections. The map that is passed as the root collection is already translated into a java collection. However, if there are nested collections these are currently not converted and therefore need to be converted by the user. The solution should be to recursively check the nested objects for convertable collection types (convertable via the JavaConverters) and then do the conversion if possible. Other solution would be to look for another mustache templating engine that already supports scala.
There are some valid code quality issues that should be looked at.
The read me currently only covers the very basic usage. It should be extended to include more usage information.
Currently filters are different for global ones vs action specific ones. Would be nice to consolidate (this could also be useful to introduce filters in websocket actions.
When using the DefaultEhCache, storing and retrieving values is using futures. If there are request coming in extremely fast, the first one might still be stored (i.e. the counter will be increased), while the second one is already reading the value and thus gets a wrong result.
It should be possible to give a specific sender actor for each new ws channel (also possibly something similar for receiving).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.