Skip to main content

HttpResultsFilter

Assembly: ServiceStack.Text.dll
View Source
Declaration
public class HttpResultsFilter : IHttpResultsFilter, IDisposable

Properties

StringResult

View Source
Declaration
public string StringResult { get; set; }

BytesResult

View Source
Declaration
public byte[] BytesResult { get; set; }

StringResultFn

View Source
Declaration
public Func<HttpWebRequest, string, string> StringResultFn { get; set; }

BytesResultFn

View Source
Declaration
public Func<HttpWebRequest, byte[], byte[]> BytesResultFn { get; set; }

UploadFileFn

View Source
Declaration
public Action<HttpWebRequest, Stream, string> UploadFileFn { get; set; }

Methods

Dispose()

View Source
Declaration
public void Dispose()

GetString(HttpWebRequest, String)

View Source
Declaration
public string GetString(HttpWebRequest webReq, string reqBody)
Returns

System.String

Parameters
TypeName
System.Net.HttpWebRequestwebReq
System.StringreqBody

GetBytes(HttpWebRequest, Byte[])

View Source
Declaration
public byte[] GetBytes(HttpWebRequest webReq, byte[] reqBody)
Returns

System.Byte[]

Parameters
TypeName
System.Net.HttpWebRequestwebReq
System.Byte[]reqBody

UploadStream(HttpWebRequest, Stream, String)

View Source
Declaration
public void UploadStream(HttpWebRequest webRequest, Stream fileStream, string fileName)
Parameters
TypeName
System.Net.HttpWebRequestwebRequest
System.IO.StreamfileStream
System.StringfileName

Implements