AzureSDK.Core.Response (Azure SDK v0.1.0)

Copy Markdown View Source

Normalized HTTP response returned by the AzureSDK pipeline.

Summary

Functions

Builds a response from a Req response.

Returns true when the response indicates success (2xx).

Types

t()

@type t() :: %AzureSDK.Core.Response{
  body: binary() | nil,
  headers: map(),
  request: AzureSDK.Core.Request.t() | nil,
  status: non_neg_integer()
}

Functions

from_req(response, request \\ nil)

@spec from_req(Req.Response.t(), AzureSDK.Core.Request.t() | nil) :: t()

Builds a response from a Req response.

success?(arg1)

@spec success?(t()) :: boolean()

Returns true when the response indicates success (2xx).