Hm, actually, I ran into a problem.After creating a new application, and trying to start it as described, I get an error when I visit the page: TCustomHTTPModule not found
Quote from: Trenatos on September 04, 2015, 11:31:44 pmHm, actually, I ran into a problem.After creating a new application, and trying to start it as described, I get an error when I visit the page: TCustomHTTPModule not foundPlease be specific, I'm not an oracle. I can't see what you code, how you run it, etc.
* What are the exceptions we are seeing in Lazarus when we run our app? Are we suppose to trap these exceptions, where/how do we trap them?
* How does the serving of static files work? For dev, it's nice to have the dev server serve JavaScript/CSS/images, but in a production environment, Nginx/Apache/CDN should really serve these.
* How could you override the default request handler? Currently the URI system is /module/action, with no mentioning of any customization.
* How can you send out another HTTP response code? Such as 403, or a 302 to the browser?
* An example of how to override Application.OnGetModule would be great!
* How to handle exceptions in production, such as sending out an email to the admin with the exception text.
* Can the exceptions during development be set to be more human to read? Currently, the stack trace reads like machine code.
* More example code on using sessions, and how the browser cookie is set for these sessions.
* Examples on how to use the other lazweb module types: Web DataProvider, Web JSON-RPC, Web Ext.Direct, HTML Web
I'll see about researching into these myself in the meantime. I am currently debating on using Pascal for future web projects, especially where performance might be needed. When comparing how fast a page loads in Pascal to dynamic languages like Python, it really shows a speed boast, as there's no more bytecode VM in the middle. I'd personally like to do a basic benchmark to say compare fpWeb with a Python microframework like Bottle.py.