HttpResponse Class

Progress Software Corporation - Testing Framework 2018.1 Automation Infrastructure
Class wrapper of an HTTP response.
Inheritance Hierarchy

SystemObject
  ArtOfTest.WebAii.Messaging.HttpHttpResponse

Namespace:  ArtOfTest.WebAii.Messaging.Http
Assembly:  ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax

[SerializableAttribute]
public class HttpResponse

The HttpResponse type exposes the following members.

Constructors

  NameDescription
Public methodHttpResponse
Internal use only. Required for serialization.
Public methodHttpResponse(HttpResponse)
Copy constructor
Public methodHttpResponse(Int32, HttpRequest)
Create a response object containing an error message
Top
Properties

  NameDescription
Public propertyContent
Gets or sets the message body. To remove the body from a message, set Content to null.
Public propertyGuid
Gets the unique identifier for this request object
Public propertyHeaders
Gets / Sets the response headers
Public propertyHttpVersion
Gets the HTTP version string the server used for this response
Public propertyIsImage
Gets whether this response contains an image (according to its content-type header)
Public propertyIsXml
Gets whether this response contains an XML document (according to its content-type header)
Public propertyMimeType
Gets an array containing all the values specified as MIME types for the content of this response
Public propertyRequest
Gets the request object that caused this response
Public propertyStatusCode
Gets / Sets the HTTP status code for this response
Public propertyStatusDescription
Gets / Sets the status description string (e.g. "OK", "Not Found") for this response. Note: Legacy content could include the preceding status code (e.g. "200 OK", "404 Not Found").
Public propertyTimestamp
The time at which this response was received from the server
Top
Methods

  NameDescription
Public methodAddHeader
Adds a new header to this response's headers. If there is already a header by the same name, the value specified in thie call is added to the list of values for the header.
Public methodAppendHeader
Adds a new header to this response's headers. If there is already a header by the same name, the value specified in thie call is added to the list of values for the header.
Public methodCleanUpConnectionOptions
Strips out any headers matching the tokens listed in the Connection header, and removes all tokens from the Connection header.
Public methodClear
Clears all headers and content output from the current response
Public methodClearContent
Clears the content buffer for the current response
Public methodClearHeaders
Clears all headers from the current response
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUnchunkedContent
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Gets the string representation of this object.
(Overrides ObjectToString.)
Public methodToString(Boolean)
Converts this HttpResponse to a string representation.
Top
See Also

Reference