C# Class NuGet.MultipartWebRequest

Based on the blog post by Travis Illig at http://www.paraesthesia.com/archive/2009/12/16/posting-multipartform-data-using-.net-webrequest.aspx
ファイルを表示 Open project: monoman/NugetCracker Class Usage Examples

Public Methods

Method Description
AddFile ( Func fileFactory, string fieldName, string contentType = "application/octet-stream" ) : void
AddFormData ( string key, string value ) : void
CreateMultipartRequest ( WebRequest request ) : void
MultipartWebRequest ( ) : System
MultipartWebRequest ( string>.Dictionary formData ) : System

Method Details

AddFile() public method

public AddFile ( Func fileFactory, string fieldName, string contentType = "application/octet-stream" ) : void
fileFactory Func
fieldName string
contentType string
return void

AddFormData() public method

public AddFormData ( string key, string value ) : void
key string
value string
return void

CreateMultipartRequest() public method

public CreateMultipartRequest ( WebRequest request ) : void
request System.Net.WebRequest
return void

MultipartWebRequest() public method

public MultipartWebRequest ( ) : System
return System

MultipartWebRequest() public method

public MultipartWebRequest ( string>.Dictionary formData ) : System
formData string>.Dictionary
return System