Skip to content

decodeUrl(with_____)

MarcoDotIO edited this page Apr 25, 2023 · 1 revision

decodeUrl(with:_:_:)

Decodes the contents of the specified URL into a JSON object using the specified HTTP headers and request body.

public func decodeUrl(with url: URL, _ headers: [String: String], _ body: Data)

Parameters

  • url: The URL to decode.
  • headers: The HTTP headers to include in the request.
  • body: The request body as Data.

Throws

An error if the decoding process fails.

Returns

The decoded JSON object.

Types
Protocols
Global Variables
Global Functions
Extensions
Clone this wiki locally