FlattenedHeadersFrom() private static method

private static FlattenedHeadersFrom ( string>.Dictionary headers ) : string[]
headers string>.Dictionary
return string[]
Example #1
0
 public WWW(string url, byte[] postData, Dictionary <string, string> headers)
 {
     string[] array = WWW.FlattenedHeadersFrom(headers);
     if (this.enforceWebSecurityRestrictions())
     {
         WWW.CheckSecurityOnHeaders(array);
     }
     this.InitWWW(url, postData, array);
 }
Example #2
0
 public WWW(string url, WWWForm form)
 {
     string[] array = WWW.FlattenedHeadersFrom(form.headers);
     if (this.enforceWebSecurityRestrictions())
     {
         WWW.CheckSecurityOnHeaders(array);
     }
     this.InitWWW(url, form.data, array);
 }