HttpRequest | iOS SDK | 2GIS Documentation
iOS SDK

HttpRequest

Structure for presenting an HTTP request.

public init(
    url: String,
    method: HttpMethod = HttpMethod.gET,
    headers: [HttpHeader] = [],
    body: Data? = nil
)
Parameters
Properties

String representation of a URL request.

HTTP request method. Default is GET.

Request header. Empty by default.

Request body. Missing by default.