Indy's TIdHttp
class has - in a recent version - a Delete()
routine. But for some reason, this is a procedure, not a function. Put()
, Get()
, etc. are all functions that return the content of the response body. Either as a string or have it delivered to a TStream
. This is not possible with Delete()
, which is contradictory to DELETE
's definition:
A successful response SHOULD be 200 (OK) if the response includes an entity describing the status, 202 (Accepted) if the action has not yet been enacted, or 204 (No Content) if the action has been enacted but the response does not include an entity.
I then tried using GetResponse()
, but that instead simply closed my connection gracefully, without filling in the response.
So how do I read the contents of the response body from a DELETE response?