var fs = require('fs'); var path = require('path'); var http2 = require('..'); var urlParse = require('url').parse;
// Setting the global logger (optional)
http2.globalAgent = new http2.Agent({
rejectUnauthorized: true,
log: require('../test/util').createLogger('client')
});
// Sending the request var url = process.argv.pop(); var options = urlParse(url);
// Quitting after both the response and the associated pushed resources have arrived var push_count = 0; var finished = 0; function finish() {
finished += 1; if (finished === (1 + push_count)) {
process.exit();
}
}
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.