Changed (Code migration possible) DefaultRequestHandlerImpl has been moved to the namespace RestServer.Helper.
Changed Samples have been moved to the homepage. They can be found here.
New Debug log which gives more insight for debugging. Helpful for deep troubleshooting or remote support. Can be turned on in the inspector.
New Added access log for every incoming request. Can be turned on in the inspector.
New Custom inspector for: showing when the server is running, starting/stopping the server and which endpoints have been registered.
New Enabled access to read the binary request data (useful for picture uploads).
Fixed Removed using var from code, therefore this package compiles under 2019 again.
ChangedThreadingHelper#ExecuteSync does no longer return default in case timeout while waiting until the render thread finishes executing. A TimeoutException is raised instead. The default timeout is 1s an can be increased by setting a custom value on ThreadingHelper#ThreadingMillisecondsTimout .
Changed Deprecated SendGetResponse, SendErrorResponse, SendGetJsonResponse in favor of the more clearly named SendAsync* Variants. The method signatures didn’t change
New New Added a lot new response methods: SendAsyncGetJsonResponse, SendAsyncGetResponse, SendAsyncOkResponse, SendAsyncHeadResponse, SendAsyncTraceResponse, SendAsyncTraceResponse, SendAsyncErrorResponse. Additionally to new helper classes: HttpHeader, MimeType and HeaderBuilder.
New Added a ProfilerMarker (“RestServer.Update”) to Workloads (code that is executed through ThreadingHelper). Further information
New Test coverage is now ~90% (excluding the underlying NetCoreServer library). Further information
NewExecuteSync now catches any exception inside the workload and transmits these to the endpoint implementation.
New Exceptions inside workloads that are executed via ExecuteAsync are reported to the log. This behaviour can be overridden via RestServer.SpecialHandlers.AsynchronousExceptionHandler
New Many internal behaviours can be adjusted by providing a lambda implementation RestServer.SpecialHandlers. Further information
New Increased amount of overall documentation
New Authorisation can now easily be realised via RestServer.SpecialHandlers.AuthHandlerFurther information
Fixed JSON responses were sent with Content-Type: text/plain instead of application/json (Thanks Julien for reporting)
Fixed Removal of Regex endpoints via EndpointCollection.RemoveEndpont(). Regex endpoints are now matched by string comparing the pattern.
Fixed Fix ExecuteAsync not executing
Fixed NullPointerException when using ExecuteAsync