C# Class Owin.RequestWriter

Helps you create valid IRequest objects
Inheritance: System.Net.Request, IRequest
Exibir arquivo Open project: remitaylor/knack Class Usage Examples

Private Properties

Property Type Description
ReadTheBody int

Public Methods

Method Description
AddHeader ( string key, IEnumerable value ) : RequestWriter

Set header, adding to any other values this header may have

AddHeader ( string key, string value ) : RequestWriter

Set header with a string, adding to any other values this header may have

AddToBody ( byte bodyPart ) : RequestWriter
AddToBody ( string bodyPart ) : RequestWriter
BeginReadBody ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
EndReadBody ( IAsyncResult result ) : int
RequestWriter ( ) : System
RequestWriter ( IRequest rawRequest ) : System
RequestWriter ( string uri ) : System
RequestWriter ( string method, string uri ) : System
RequestWriter ( string method, string uri, byte body ) : System
RequestWriter ( string method, string uri, string body ) : System
SetBody ( string>.IDictionary postData ) : RequestWriter
SetBody ( byte body ) : RequestWriter
SetBody ( string body ) : RequestWriter
SetContentType ( string type ) : RequestWriter
SetHeader ( string key, IEnumerable value ) : RequestWriter

Set header, overriding any other values this header may have

SetHeader ( string key, string value ) : RequestWriter

Set header with a string, overriding any other values this header may have

SetItem ( string key, object value ) : RequestWriter
SetMethod ( string method ) : RequestWriter
SetUri ( string uri ) : RequestWriter
SetValidDefaults ( ) : void

Private Methods

Method Description
ReadTheBody ( byte buffer, int offset, int count ) : int

Method Details

AddHeader() public method

Set header, adding to any other values this header may have
public AddHeader ( string key, IEnumerable value ) : RequestWriter
key string
value IEnumerable
return RequestWriter

AddHeader() public method

Set header with a string, adding to any other values this header may have
public AddHeader ( string key, string value ) : RequestWriter
key string
value string
return RequestWriter

AddToBody() public method

public AddToBody ( byte bodyPart ) : RequestWriter
bodyPart byte
return RequestWriter

AddToBody() public method

public AddToBody ( string bodyPart ) : RequestWriter
bodyPart string
return RequestWriter

BeginReadBody() public method

public BeginReadBody ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
count int
callback AsyncCallback
state object
return IAsyncResult

EndReadBody() public method

public EndReadBody ( IAsyncResult result ) : int
result IAsyncResult
return int

RequestWriter() public method

public RequestWriter ( ) : System
return System

RequestWriter() public method

public RequestWriter ( IRequest rawRequest ) : System
rawRequest IRequest
return System

RequestWriter() public method

public RequestWriter ( string uri ) : System
uri string
return System

RequestWriter() public method

public RequestWriter ( string method, string uri ) : System
method string
uri string
return System

RequestWriter() public method

public RequestWriter ( string method, string uri, byte body ) : System
method string
uri string
body byte
return System

RequestWriter() public method

public RequestWriter ( string method, string uri, string body ) : System
method string
uri string
body string
return System

SetBody() public method

public SetBody ( string>.IDictionary postData ) : RequestWriter
postData string>.IDictionary
return RequestWriter

SetBody() public method

public SetBody ( byte body ) : RequestWriter
body byte
return RequestWriter

SetBody() public method

public SetBody ( string body ) : RequestWriter
body string
return RequestWriter

SetContentType() public method

public SetContentType ( string type ) : RequestWriter
type string
return RequestWriter

SetHeader() public method

Set header, overriding any other values this header may have
public SetHeader ( string key, IEnumerable value ) : RequestWriter
key string
value IEnumerable
return RequestWriter

SetHeader() public method

Set header with a string, overriding any other values this header may have
public SetHeader ( string key, string value ) : RequestWriter
key string
value string
return RequestWriter

SetItem() public method

public SetItem ( string key, object value ) : RequestWriter
key string
value object
return RequestWriter

SetMethod() public method

public SetMethod ( string method ) : RequestWriter
method string
return RequestWriter

SetUri() public method

public SetUri ( string uri ) : RequestWriter
uri string
return RequestWriter

SetValidDefaults() public method

public SetValidDefaults ( ) : void
return void