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
Type | Name |
---|---|
System.Net.HttpWebRequest | webReq |
System.String | reqBody |
GetBytes(HttpWebRequest, Byte[])
View Source
Declaration
public byte[] GetBytes(HttpWebRequest webReq, byte[] reqBody)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.Net.HttpWebRequest | webReq |
System.Byte[] | reqBody |
UploadStream(HttpWebRequest, Stream, String)
View Source
Declaration
public void UploadStream(HttpWebRequest webRequest, Stream fileStream, string fileName)
Parameters
Type | Name |
---|---|
System.Net.HttpWebRequest | webRequest |
System.IO.Stream | fileStream |
System.String | fileName |
Implements
- ServiceStack.IHttpResultsFilter
System.IDisposable