Metadata accompanying a successful REST response.
:status- the HTTP status code.:headers- the raw response headers, as returned byReq.:links- parsed pagination links, e.g.%{"next" => url, "last" => url}. Empty when the endpoint is not paginated.:rate_limit- aGhEx.RateLimitsnapshot, ornilif the headers were absent.:etag- theETagheader value, ornilwhen absent. Store it and send it back asIf-None-Matchon a later request to get a304(seeGhEx.REST).:last_modified- theLast-Modifiedheader value, ornilwhen absent. Usable asIf-Modified-Sincefor the same effect.
Summary
Types
@type t() :: %GhEx.REST.Meta{ etag: String.t() | nil, headers: map() | list(), last_modified: String.t() | nil, links: %{optional(String.t()) => String.t()}, rate_limit: GhEx.RateLimit.t() | nil, status: pos_integer() | nil }