Example #1
0
        private void SetHeaders()
        {
            if (representation != null)
            {
                //ContentType = representation.GetContentType();
                Etag = representation.GetEtag();
                //Caching = representation.GetCaching();

                foreach (string w in representation.GetWarnings())
                {
                    warningHeaders.Add(new WarningHeaderValue(299, "RestfulObjects", "\"" + w + "\""));
                }

                if (httpStatusCode == HttpStatusCode.Created)
                {
                    Location = representation.GetLocation();
                }
            }
        }