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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eHttpResponse\u003c/code\u003e class within the Google Cloud Apigee Connect v1 API, with the latest version being 2.4.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eHttpResponse\u003c/code\u003e class, part of the \u003ccode\u003eGoogle.Cloud.ApigeeConnect.V1\u003c/code\u003e namespace, represents an HTTP response, and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains properties to access and modify various parts of an HTTP response, including \u003ccode\u003eBody\u003c/code\u003e, \u003ccode\u003eContentLength\u003c/code\u003e, \u003ccode\u003eHeaders\u003c/code\u003e, \u003ccode\u003eId\u003c/code\u003e, \u003ccode\u003eStatus\u003c/code\u003e, and \u003ccode\u003eStatusCode\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eHttpResponse\u003c/code\u003e class includes two constructors, a default one and one that takes another \u003ccode\u003eHttpResponse\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eIt also shows a list of the different available versions of this documentation, starting from version 1.0.0 up to the latest 2.4.0 version.\u003c/p\u003e\n"]]],[],null,["# Apigee Connect v1 API - Class HttpResponse (2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.ApigeeConnect.V1/latest/Google.Cloud.ApigeeConnect.V1.HttpResponse)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.ApigeeConnect.V1/2.3.0/Google.Cloud.ApigeeConnect.V1.HttpResponse)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.ApigeeConnect.V1/2.2.0/Google.Cloud.ApigeeConnect.V1.HttpResponse)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.ApigeeConnect.V1/2.1.0/Google.Cloud.ApigeeConnect.V1.HttpResponse)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.ApigeeConnect.V1/2.0.0/Google.Cloud.ApigeeConnect.V1.HttpResponse)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ApigeeConnect.V1/1.1.0/Google.Cloud.ApigeeConnect.V1.HttpResponse)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ApigeeConnect.V1/1.0.0/Google.Cloud.ApigeeConnect.V1.HttpResponse) \n\n public sealed class HttpResponse : IMessage\u003cHttpResponse\u003e, IEquatable\u003cHttpResponse\u003e, IDeepCloneable\u003cHttpResponse\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Apigee Connect v1 API class HttpResponse.\n\nThe proto definition of http response. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e HttpResponse \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[HttpResponse](/dotnet/docs/reference/Google.Cloud.ApigeeConnect.V1/latest/Google.Cloud.ApigeeConnect.V1.HttpResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[HttpResponse](/dotnet/docs/reference/Google.Cloud.ApigeeConnect.V1/latest/Google.Cloud.ApigeeConnect.V1.HttpResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[HttpResponse](/dotnet/docs/reference/Google.Cloud.ApigeeConnect.V1/latest/Google.Cloud.ApigeeConnect.V1.HttpResponse), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.ApigeeConnect.V1](/dotnet/docs/reference/Google.Cloud.ApigeeConnect.V1/latest/Google.Cloud.ApigeeConnect.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ApigeeConnect.V1.dll\n\nConstructors\n------------\n\n### HttpResponse()\n\n public HttpResponse()\n\n### HttpResponse(HttpResponse)\n\n public HttpResponse(HttpResponse other)\n\nProperties\n----------\n\n### Body\n\n public ByteString Body { get; set; }\n\nThe HTTP 1.1 response body.\n\n### ContentLength\n\n public long ContentLength { get; set; }\n\nContent length records the length of the associated content. The\nvalue -1 indicates that the length is unknown. Unless http method\nis \"HEAD\", values \\\u003e= 0 indicate that the given number of bytes may\nbe read from Body.\n\n### Headers\n\n public RepeatedField\u003cHeader\u003e Headers { get; }\n\nThe HTTP response headers.\n\n### Id\n\n public string Id { get; set; }\n\nA unique identifier that matches the request ID.\n\n### Status\n\n public string Status { get; set; }\n\nStatus of http response, e.g. \"200 OK\".\n\n### StatusCode\n\n public int StatusCode { get; set; }\n\nStatus code of http response, e.g. 200."]]