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

                if (ResponsetNativeWrapper.ResponseGetFirstHeader(responseHandle, GoString.FromString(name), out res))
                {
                    return(new Header(name, res.AsString));
                }
                else
                {
                    return(null);
                }
            }
Esempio n. 2
0
 public void SetHeader(Header header)
 {
     ResponsetNativeWrapper.ResponseSetHeader(responseHandle, header.Name, header.Value);
     marshalledHeaders = null;
 }
Esempio n. 3
0
 public void SetHeader(string name, string value)
 {
     ResponsetNativeWrapper.ResponseSetHeader(responseHandle, name, value);
     marshalledHeaders = null;
 }
Esempio n. 4
0
 public bool HeaderExists(string name)
 {
     return(ResponsetNativeWrapper.ResponseHeaderExists(responseHandle, GoString.FromString(name)));
 }