4D Component which includes methods to help your web developing.
By Installing this component into your 4D project, several methods are added to your 4D project, in order for making web developing easier.
4D v18R3 or above
Note: This component uses new "Class" function introduced in 4D v18R3. Please do not open it with 4D v18R2 and under.
This is a 4D component, so you should build this source as 4D component and place it in the "Components" folder of your project root.
Please refer to the doc.
- General
- Shared Methods
- Classes
- Other reads
Small sample demo is in the "test" folder. Just launch it with 4D v18 Standalone and connect to it with your favorite web browser via http://localhost/.
HTTPServer component is released under MIT license.
- JSON body was not parsed since the content-type may be application/json; charset=utf-8, not application/json. now it's fixed (2023-12-26)
- Request.redirect will not encode path parameter any more (2022-03-24)
- Documents are moved from wiki to Github Pages (2021-05-04)
- Added Request.baseUrl attribute support (2021-05-02)
- Fixed bug : Request.params does not return params when multiple route matches the path (2021-05-02)
- Fixed bug : Response.cookie, httpOnly was not default, path param was not root when option is omitted (2021-04-02)
- Fixed bug : Response.redirect did not work (2021-04-02)
- Added component HTTP server support (2020-05-24)
- Modified compareCaseSensitive command (2020-05-09)
- Rewritten using 4D v18R3 using Class function (2020-05-06)
- Added new Router (2020-04-26)
- Moved HttpServer.vhost to new Virtualhost (2020-04-23)