public void ApplyTo(IResponseWrapper responseWrapper)
 {
     ResponseContext context = new ResponseContext();
     context.AddHeader(statusCode);
     representation.UpdateContext(context);
     context.ApplyTo(responseWrapper);
 }
コード例 #2
0
        public static Output For(IRepresentation representation)
        {
            ResponseContext context = new ResponseContext();
            representation.UpdateContext(context);

            return For(context);
        }
コード例 #3
0
        public static Output For(IHeader header)
        {
            ResponseContext context = new ResponseContext();
            context.AddHeader(header);

            return For(context);
        }
 public bool Matches(IRepresentation representation)
 {
     IResponseContext context = new ResponseContext();
     representation.UpdateContext(context);
     return context.ContainsHeader(header);
 }