Table of Contents

Class HttpListenerRequestExtensions

Namespace
nanoFramework.WebServer
Assembly
nanoFramework.WebServer.dll

Contains extension methods for HttpListenerRequest

public static class HttpListenerRequestExtensions
Inheritance
HttpListenerRequestExtensions
Inherited Members

Methods

ReadBody(HttpListenerRequest)

Reads a body from the HttpListenerRequest inputstream

public static byte[] ReadBody(this HttpListenerRequest httpListenerRequest)

Parameters

httpListenerRequest HttpListenerRequest

The request to read the body from

Returns

byte[]

A byte[] containing the body of the request

ReadForm(HttpListenerRequest)

Reads a Multipart form from the request

public static MultipartFormDataParser ReadForm(this HttpListenerRequest httpListenerRequest)

Parameters

httpListenerRequest HttpListenerRequest

The request to read the form from

Returns

MultipartFormDataParser

A MultipartFormDataParser containing a collection of the parameters and files in the form.