<PackageReference Include="Refit" Version="15.2.0" />

Refit.BodyAttribute

public sealed class BodyAttribute : Attribute
Set a parameter to be sent as the HTTP request's body.
public bool? Buffered { get; }

Gets the buffered.

public RequestCompression Compression { get; set; }

Gets or sets the content coding applied to this body, overriding RequestCompression.

public CompressionLevel CompressionLevel { get; set; }

Gets or sets how hard Compression compresses (defaults to Optimal).

Gets the serialization method.

public BodyAttribute()

Initializes a new instance of the BodyAttribute class.

public BodyAttribute(bool buffered)

Initializes a new instance of the BodyAttribute class.

public BodyAttribute(BodySerializationMethod serializationMethod, bool buffered)

Initializes a new instance of the BodyAttribute class.

public BodyAttribute(BodySerializationMethod serializationMethod)

Initializes a new instance of the BodyAttribute class.