Abstract superclass for REST implementation classes generated from OpenAPI specifications.
If ExposeServerExceptions is overridden as true, then details of internal errors will be exposed.
Check that the ACCEPT request header is included in the produces list.
Remove a header from the response. Note that name is not case sensitive
Get the content-type header of the request
Return the value of the
namerequest header. Note that name is not case sensitive
Log an API Management error
Report an error when processing a request. The implementation class may contain an override of %ReportRESTError in order to format the error response as required by the REST application. The override should use the %WriteResponse method to return the error response.
Set the content-type header of the response
Sets a custom HTTP header into the reply. If you set the same header twice it will append the information to the first with a ',' between them. Note that name is not case sensitive, however we will remember the case of the header when sending this to the client.
Helper method that sets a header if it is currently empty, if it already has a value it does nothing. Returns true if the header was set and false if it did nothing.
The HTTP Status code to be sent back in the response. The HTTP status codes are defined in RFC 2068.
%WriteResponse is used by the dispatch class to write the response to this request.