Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: void ParsePostBody(Stream, string, long)

Declaration

internal void ParsePostBody(
    Stream body,
    string tempPath = null,
    long storeFileUploadInFileAtSize = 16777216
)

Summary

If this request is a POST/PUT/PATCH request, replaces the body of the request with data from the specified stream. This will clear and reinitialize all the parameter values and file uploads.

Parameters

StreambodyStream to read new request body from.
stringtempPathThe temporary directory to use for file uploads. Default is Path.GetTempPath.
longstoreFileUploadInFileAtSizeThe maximum size (in bytes) at which file uploads are stored in memory. Any uploads that exceed this limit are written to temporary files on disk. Default is 16 MB.