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
Afficher le fichier Open project: monoman/NugetCracker Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

AddFormData() public méthode

public AddFormData ( string key, string value ) : void
key string
value string
Résultat void

CreateMultipartRequest() public méthode

public CreateMultipartRequest ( WebRequest request ) : void
request System.Net.WebRequest
Résultat void

MultipartWebRequest() public méthode

public MultipartWebRequest ( ) : System
Résultat System

MultipartWebRequest() public méthode

public MultipartWebRequest ( string>.Dictionary formData ) : System
formData string>.Dictionary
Résultat System