Click or drag to resize

JsonClientPayload Class

Passed as the document to be uploaded with a JsonClientPOST or PUT request to customize the payload data and content-type. This can be used in special situations where a REST API needs to push application/x-www-form-urlencoded data or other formats.
Inheritance Hierarchy
SystemObject
  Neon.NetJsonClientPayload

Namespace:  Neon.Net
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.4.1
Syntax
public class JsonClientPayload

The JsonClientPayload type exposes the following members.

Constructors
  NameDescription
Public methodJsonClientPayload(String, Byte)
Constructs an instance from the Content-Type header and byte data to be included with the POST/PUT.
Public methodJsonClientPayload(String, String)

Constructs an instance from the Content-Type header and text to be included with the POST/PUT.

Note Note
The uploaded text will be UTF-8 encoded.
Top
Properties
  NameDescription
Public propertyContentBytes
Returns the payload bytes to be included in the POST/PUT request.
Public propertyContentType
Returns the HTTP Content-Type header to be included in the POST/PUT request.
Top
Methods
  NameDescription
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.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also