Commit Graph

7 Commits

Author SHA1 Message Date
Daniele Teti
082089f9a1 Updated sample projects to D12.2; New middleware TMVCShutdownMiddleware (useful to create a route which shutdown the server in automated testing environments)
Some checks are pending
TOC Generator / TOC Generator (push) Waiting to run
2024-10-01 09:46:54 +02:00
Daniele Teti
42e0bc1209 Updated CustomRoleAuth samples 2024-07-28 23:29:19 +02:00
Daniele Teti
b1db039655 Updated samples 2024-04-23 23:16:28 +02:00
Daniele Teti
82ca77ab60 Renamed "Render(AErrorCode: Integer etc" in "RenderStatusMessage(etc..." 2022-10-26 19:31:54 +02:00
Daniele Teti
53fc9e394e https://github.com/danieleteti/delphimvcframework/issues/585 2022-10-25 09:00:35 +02:00
Daniele Teti
f54f74522c - Default error responses contains the official "reason string" associated to the HTTP status code (this can be a breaking change for some generic client which doesn't correctly interpret the http status code)
- Added static method `HTTP_STATUS.ReasonStringFor(HTTPStatusCode)` wich returns the standard `ReasonString` for a given HTTP status code.
- Improved handling of `TMVCErrorResponse` information
- mid-air-collision handling now uses SHA1 instead of MD5
- Added `MVCFramework.Commons.MVC_HTTP_STATUS_CODES` const array containing all the HTTP status codes wich its `ReasonString`
2022-10-09 15:45:59 +02:00
Daniele Teti
0f3bae84b9 Automated support to avoid "mid-air collisions". New methods SetETag and CheckIfMatch allows a better security without adding complexity to the controller code - check avoid_mid_air_collisions_sample.dproj sample and see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag#avoiding_mid-air_collisions for more info about mid-air collisions. 2022-08-18 01:45:49 +02:00