Lines Matching defs:is

11  * distributed under the License is distributed on an "AS IS" BASIS,
27 * TestWebServer is a simulated controllable test server that
62 /* Indicator for whether this server is configured as a HTTP/1.1
122 * @param timeout Indicates the period of time to wait until a socket is
192 * When this value is set, the server will respond to a request with
216 * The AcceptThread is responsible for initiating worker threads
230 // Socket timeout functionality is not available yet
322 * connection. If pipelining is turned on, this will allow this
324 * connection is closed.
432 * @param is Inputstream to read
435 private int readOneLine(InputStream is) {
441 log("Reading one line: started ="+readStarted+" avail="+is.available());
442 while ((!readStarted) || (is.available() > 0)) {
443 int data = is.read();
469 * @param is Stream from which to read data
473 private int readData(InputStream is, int length) {
480 while (is.available() > 0) {
481 count = is.read(buf, read, length-read);
494 * @param is Inputstream to read
497 private int parseStatusLine(InputStream is) {
503 nread = readOneLine(is);
564 * @param is Inputstream to read
567 private int parseHeader(InputStream is) {
572 nread = readOneLine(is);
602 * @param is Inputstream to read
605 private int readHeaders(InputStream is) {
611 headerLen = parseHeader(is);
623 * @param is Inputstream to read
626 private int readContent(InputStream is) {
633 length = readData(is, length);
641 InputStream is = new BufferedInputStream(s.getInputStream());
653 nread = parseStatusLine(is);
657 nread = readHeaders(is);
662 nread = readContent(is);