public sealed class HttpResponse : IMessage<HttpResponse>, IEquatable<HttpResponse>, IDeepCloneable<HttpResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Apigee Connect v1 API class HttpResponse.
The proto definition of http response.
Implements
IMessageHttpResponse, IEquatableHttpResponse, IDeepCloneableHttpResponse, IBufferMessage, IMessageNamespace
Google.Cloud.ApigeeConnect.V1Assembly
Google.Cloud.ApigeeConnect.V1.dll
Constructors
HttpResponse()
public HttpResponse()
HttpResponse(HttpResponse)
public HttpResponse(HttpResponse other)
Parameter | |
---|---|
Name | Description |
other | HttpResponse |
Properties
Body
public ByteString Body { get; set; }
The HTTP 1.1 response body.
Property Value | |
---|---|
Type | Description |
ByteString |
ContentLength
public long ContentLength { get; set; }
Content length records the length of the associated content. The value -1 indicates that the length is unknown. Unless http method is "HEAD", values >= 0 indicate that the given number of bytes may be read from Body.
Property Value | |
---|---|
Type | Description |
long |
Headers
public RepeatedField<Header> Headers { get; }
The HTTP response headers.
Property Value | |
---|---|
Type | Description |
RepeatedFieldHeader |
Id
public string Id { get; set; }
A unique identifier that matches the request ID.
Property Value | |
---|---|
Type | Description |
string |
Status
public string Status { get; set; }
Status of http response, e.g. "200 OK".
Property Value | |
---|---|
Type | Description |
string |
StatusCode
public int StatusCode { get; set; }
Status code of http response, e.g. 200.
Property Value | |
---|---|
Type | Description |
int |