Back to product page

Body property


Holds full request data body, if any.

Type

String

Syntax

  • C#
  • VB.NET
String Body {get; set; };

Property Body As String

Remarks

Body property holds full body sent by the client (but without headers!). It is intact - wodWebServer.NET does not interfere with the contents of the body. When Body property is accessed, wodWebServer.NET will actually access data defined in Stream property, read/write to it and present it to you as String value.

Even when you expect data posted by the client, it is possible that you don't need to access contents of the Body property directly. Since most requests will either post data using application/x-urlencoded content type, or will be upload it (used for larger content, such as files) using multipart/form-data content type. In both cases, you can use wodWebServer.NET's wrapper: Posted property for first type, and Uploads property for second type.

Platforms

Windows