Beispiel #1
0
 ExchangeImpl(String m, URI u, Request req, int len, HttpConnection connection)
     throws IOException {
   this.req = req;
   this.reqHdrs = req.headers();
   this.rspHdrs = new Headers();
   this.method = m;
   this.uri = u;
   this.connection = connection;
   this.reqContentLen = len;
   /* ros only used for headers, body written directly to stream */
   this.ros = req.outputStream();
   this.ris = req.inputStream();
   server = getServerImpl();
   server.startExchange();
 }