HttpResponse object
The attributes associated with an HTTP response.
On this page
Fields
-
body (
String
)The HTTP body.
-
header (
HttpResponseHeader
)An HTTP header.
Argument Description name
(String!
) requiredA case-insensitive header name.
-
jsonBody (
JSON
)The body of the response in JSON format. If the body isn't valid JSON, it will be returned as a JSON string. This field shouldn't be used in conjunction with the body field, which returns the body solely as a plain string. Use this field when you need to handle mixed use cases, such as receiving both JSON and non-JSON responses.
-
status (
Int!
)The HTTP status code.
Types that return HttpResponse
Deprecated fields
-
headers (
[HttpResponseHeader!]!
) deprecatedThe HTTP headers.
Deprecation warning
Use
header
instead.
The attributes associated with an HTTP response.
On this page
Fields
Types that return HttpResponse
Deprecated fields
-
headers (
[HttpResponseHeader!]!
) deprecatedThe HTTP headers.
Deprecation warning
Use
header
instead.
The attributes associated with an HTTP response.
On this page
Fields
Types that return HttpResponse
Deprecated fields
-
headers (
[HttpResponseHeader!]!
) deprecatedThe HTTP headers.
Deprecation warning
Use
header
instead.
The attributes associated with an HTTP response.
On this page
Fields
Types that return HttpResponse
Deprecated fields
-
headers (
[HttpResponseHeader!]!
) deprecatedThe HTTP headers.
Deprecation warning
Use
header
instead.
The attributes associated with an HTTP response.
On this page
Fields
Types that return HttpResponse
Deprecated fields
-
headers (
[HttpResponseHeader!]!
) deprecatedThe HTTP headers.
Deprecation warning
Use
header
instead.