Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.network/HttpRequest

HttpRequest

class HttpRequest

Represents the data for an HTTP request

Types

Builder
Link copied to clipboard
class Builder

Builder helper class for constructing HttpRequests.

Companion
Link copied to clipboard
object Companion
Headers
Link copied to clipboard
object Headers

Object containing some constants for commonly used HTTP Headers

Properties

body
Link copied to clipboard
val body: String?

The optional body of the request as a string.

etag
Link copied to clipboard
val etag: String?
headers
Link copied to clipboard
val headers: Map<String, String>

The optional headers to be included in the request as a map of key-value pairs.

isGzip
Link copied to clipboard
val isGzip: Boolean

Indicates whether the request body should be compressed using GZIP encoding. Default is false.

method
Link copied to clipboard
val method: HttpMethod

The HTTP method of the request.

url
Link copied to clipboard
val url: URL

The URL to which the request will be sent.

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String
Generated by Dokka
(c) Tealium 2026