Table of Contents

IHttpResponse Interface

Represents an HTTP response received from a server, providing access to the status, headers, and content body.

Syntax

Unit: Sparkle.Http.Engine

IHttpResponse = interface(IInterface);

Properties

Name Description
ContentAsBytes Gets the response content body as a byte array.
ContentAsStream Gets the response content body as a readable stream.
ContentLength Gets the length, in bytes, of the response content body.
ContentType Gets the value of the response Content-Type header.
Headers Gets the collection of HTTP headers received with the response.
StatusCode Gets the HTTP status code of the response, such as 200 or 404.
StatusReason Gets the textual reason phrase associated with the status code.