Table of Contents

THttpRequest.SetContent Method

Sets the request content body from a byte array.

Remarks

The bytes are copied into an internal stream owned by the request, so the caller retains ownership of Value. This replaces any previously assigned ContentStream.

Syntax

Unit: Sparkle.Http.Engine

procedure THttpRequest.SetContent(const Value: TBytes);

Parameters

<-> Parameter Type Description
const Value TBytes The bytes to use as the request body.

See also