1.3.0 (31.05.2022)

  • 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.

1.2.0 (03.04.2022)

  • Changed ThreadingHelper#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
  • New ExecuteSync 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.AuthHandler Further 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.

1.1.1 (19.03.2022)

  • Fixed Fix ExecuteAsync not executing
  • Fixed NullPointerException when using ExecuteAsync

1.1.0 (15.03.2022)

  • New Downgrade required Unity Version to 2020.3

1.0.0 (10.03.2022)

  • New Initial version