Exemplo n.º 1
0
        public HttpResponse Send(EndpointInvocation invocation)
        {
            var request = requestForUrlTarget(invocation.Target);

            request.Method      = invocation.Method;
            request.ContentType = invocation.ContentType;
            request.As <HttpWebRequest>().Accept = invocation.Accept;

            request.WriteText(invocation.GetContent());

            return(request.ToHttpCall());
        }
Exemplo n.º 2
0
 protected override void beforeLine()
 {
     _driver = new EndpointDriver(_urls.Value);
         _invocation = new EndpointInvocation();
         _response = null;
 }