You are not logged in.
Hi ab, I have a situation where I only want to return http status code, currently the http rest server always sets Content-Type header to json unless overriden but there doesn't seem to be an easy way to control this via context in method based services.
It would be nice if there was a boolean property in TRestServerUriContext that would control that or even better if there were another overloaded Returns method that only specifies the status code.
best regards
Offline
IIRC the HTTP standard request a Content-Type, even if there is no content body returned.
It won't hurt the communication performance if a Content-Type is transmitted anyway.
Offline