Lines Matching refs:req
41 void errorReply (HttpTransaction req, String reply) throws IOException {
42 req.addResponseHeader ("Connection", "close");
43 req.addResponseHeader ("WWW-Authenticate", reply);
44 req.sendResponse (401, "Unauthorized");
45 req.orderlyClose();
48 void okReply (HttpTransaction req) throws IOException {
49 req.setResponseEntityBody ("Hello .");
50 req.sendResponse (200, "Ok");
51 req.orderlyClose();
54 public void request (HttpTransaction req) {
56 authstring = req.getRequestHeader ("Authorization");
59 errorReply (req, "Digest realm=\"wallyworld\", nonce=\"1234\", domain=\"/\"");
65 req.sendResponse (400, "Bad Request");
69 okReply (req);