Esempio n. 1
0
            public Header GetFirstHeader(string name)
            {
                GoString res = new GoString();

                if (RequestNativeWrapper.RequestGetFirstHeader(requestHandle, GoString.FromString(name), out res))
                {
                    return(new Header(name, res.AsString));
                }
                else
                {
                    return(null);
                }
            }
Esempio n. 2
0
 public void SetHeader(string name, string value)
 {
     RequestNativeWrapper.RequestSetHeader(requestHandle, name, value);
     marshalledHeaders = null;
 }
Esempio n. 3
0
 public void SetHeader(Header header)
 {
     RequestNativeWrapper.RequestSetHeader(requestHandle, header.Name, header.Value);
     marshalledHeaders = null;
 }
Esempio n. 4
0
 public bool HeaderExists(string name)
 {
     return(RequestNativeWrapper.RequestHeaderExists(requestHandle, GoString.FromString(name)));
 }