Click or drag to resize
HTTPResponse Class

This class encapsulates an HTTP response message.

Inheritance Hierarchy
SystemObject
  OIV.InventorSoNetBase
    OIV.RemoteViz.RenderingHTTPResponse

Namespace: OIV.RemoteViz.Rendering
Assembly: OIV.RemoteViz (in OIV.RemoteViz.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public class HTTPResponse : SoNetBase

The HTTPResponse type exposes the following members.

Constructors
  NameDescription
Public methodHTTPResponse

Creates a HTTP/1.1 response with "200 OK" status.

Public methodHTTPResponse(HTTPResponseHTTPStatus)

Creates a HTTP/1.1 response with the given status and a standard reason phrase.

Public methodHTTPResponse(HTTPResponseHTTPStatus, String)

Creates a HTTP/1.1 response with the given status and reason phrase.

Public methodHTTPResponse(HTTPResponseHTTPStatus, String, String)

Creates a HTTP/1.1 response with the given status, reason phrase and message body data.

Public methodHTTPResponse(HTTPResponseHTTPStatus, String, String, Int32, Int32, HTTPHeaders)

Creates a HTTP response with the given status, reason phrase, message body data, version and headers.

Top
Methods
  NameDescription
Public methodCopyFrom

Copy assignment operator.

Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodStatic memberGetReasonPhrase

Returns the standard HTTP reason phrase for a HTTP status code.

Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyBody

Returns the HTTP message body data (optional).

Public propertyContentLength

Returns the size of the body, in bytes (Content-Length entity header)

Public propertyHeaders

Returns HTTP headers.

Public propertyReason

Returns the HTTP reason phrase.

Public propertyStatusCode

Returns the HTTP status.

Public propertyVersion

Returns the HTTP version for incoming request (example "HTTP/1.1").

Public propertyVersionMajor

HTTP uses a "major.minor" numbering scheme to indicate versions of the protocol.

Public propertyVersionMinor

HTTP uses a "major.minor" numbering scheme to indicate versions of the protocol.

Top
Remarks

Used in the OIV.RemoteViz.Rendering.ServiceListener onHTTPRequest() method.

See Also