// searches for extension header in response /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public string GetExtension(HttpExtension extension, string header) { CheckDisposed(); return GetResponseHeader(header); }
/// <devdoc> /// <para>Assembles and creates a new extension header, by adding it the extension object </para> /// </devdoc> public void AddExtension(HttpExtension extension, string header, string value) { StringBuilder sb = new StringBuilder(100); if (extension == null) { throw new ArgumentNullException("extension"); } if (! extension.HasAddedExtensionHeader) { StringBuilder sb2 = new StringBuilder(100); extension.HasAddedExtensionHeader = true; sb2.Append(extension.Header); sb2.Append(": \""); sb2.Append(extension.Uri); sb2.Append("\"; ns="); sb2.Append(extension.ID); _HttpRequestHeaders.Add(sb2.ToString()); } sb.Append(extension.ID); sb.Append('-'); sb.Append(header); _HttpRequestHeaders.Add(sb.ToString(), value); }
// searches for extension header in response /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public string GetExtension(HttpExtension extension, string header) { CheckDisposed(); return(GetResponseHeader(header)); }
/// <devdoc> /// <para>Assembles and creates a new extension header, and /// returns an extension object that can be used to /// add extension headers</para> /// </devdoc> public HttpExtension CreateExtension(string uri, string header) { int id = _NextExtension; HttpExtension extension = new HttpExtension(id, uri, header); _NextExtension++; return extension; }