ru.dgis.sdk.platform.HttpRequest | Android SDK | 2GIS Documentation
Android SDK

HttpRequest

Structure for presenting an HTTP request.

HttpRequest(
	url: String,
	method: HttpMethod = HttpMethod.GET,
	headers: List<HttpHeader> = listOf(),
	body: ByteArray? = null
)

Structure for presenting an HTTP request.

Parameters
Properties

String representation of a URL request.

HTTP request method. Default is GET.

Request header. Empty by default.

Request body. Missing by default.