/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* vim:set ts=2 sw=2 sts=2 et: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// exercise nsIHttpResponse.setStatusLine, ensure its atomicity, and ensure the // specified behavior occurs if it's not called
ChromeUtils.defineLazyGetter(this, "URL", function () { return"http://localhost:" + srv.identity.primaryPort;
});
// /crazyCode function crazyCode(metadata, response) {
response.setStatusLine("1.1", 617, "Crazy");
} function startCrazy(ch) {
checkStatusLine(ch, 1, 1, 617, "Crazy");
}
// /nullVersion function nullVersion(metadata, response) {
response.setStatusLine(null, 255, "NULL");
} function startNullVersion(ch) { // currently, this server implementation defaults to 1.1
checkStatusLine(ch, 1, 1, 255, "NULL");
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.6Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.