Package com.naver.ads.network
Class Response
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerstatusCodeprivate final HttpHeadersheadersprivate final Tbodyprivate final HttpResponserawResponse
-
Constructor Summary
Constructors Constructor Description Response(T body, HttpResponse rawResponse)Constructs a new Response instance.
-
Method Summary
Modifier and Type Method Description final IntegergetStatusCode()HTTP status code final HttpHeadersgetHeaders()HTTP headers. final TgetBody()the deserialized response body. final HttpResponsegetRawResponse()the raw response from the HTTP client. -
-
Constructor Detail
-
Response
Response(T body, HttpResponse rawResponse)
Constructs a new Response instance.
-
-
Method Detail
-
getStatusCode
final Integer getStatusCode()
HTTP status code
-
getHeaders
final HttpHeaders getHeaders()
HTTP headers.
-
getRawResponse
final HttpResponse getRawResponse()
the raw response from the HTTP client.
-
-
-
-