TracyHttpRequestBody

Represents the body content of an HTTP request. It can either be a JSON payload or form data.

This sealed class is used as part of the TracyHttpRequest data structure to encapsulate the various types of data that can be transmitted as the body of an HTTP request.

  • Json: Represents a JSON body containing structured data.

  • FormData: Represents form-data typically used in multipart requests.

Inheritors

Types

Link copied to clipboard
data class FormData(val data: FormData) : TracyHttpRequestBody
Link copied to clipboard
data class Json(val json: JsonElement) : TracyHttpRequestBody

Functions