Apigee Connect v1 API - Class HttpResponse (2.1.0)

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.

Inheritance

Object > HttpResponse

Namespace

Google.Cloud.ApigeeConnect.V1

Assembly

Google.Cloud.ApigeeConnect.V1.dll

Constructors

HttpResponse()

public HttpResponse()

HttpResponse(HttpResponse)

public HttpResponse(HttpResponse other)
Parameter
NameDescription
otherHttpResponse

Properties

Body

public ByteString Body { get; set; }

The HTTP 1.1 response body.

Property Value
TypeDescription
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
TypeDescription
Int64

Headers

public RepeatedField<Header> Headers { get; }

The HTTP response headers.

Property Value
TypeDescription
RepeatedField<Header>

Id

public string Id { get; set; }

A unique identifier that matches the request ID.

Property Value
TypeDescription
String

Status

public string Status { get; set; }

Status of http response, e.g. "200 OK".

Property Value
TypeDescription
String

StatusCode

public int StatusCode { get; set; }

Status code of http response, e.g. 200.

Property Value
TypeDescription
Int32