Path: blob/main/third_party/closure-compiler/node-externs/https.js
6174 views
/*1* Copyright 2012 The Closure Compiler Authors.2*3* Licensed under the Apache License, Version 2.0 (the "License");4* you may not use this file except in compliance with the License.5* You may obtain a copy of the License at6*7* http://www.apache.org/licenses/LICENSE-2.08*9* Unless required by applicable law or agreed to in writing, software10* distributed under the License is distributed on an "AS IS" BASIS,11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12* See the License for the specific language governing permissions and13* limitations under the License.14*/1516/**17* @fileoverview Definitions for node's https module. Depends on the tls module.18* @see http://nodejs.org/api/https.html19* @see https://github.com/joyent/node/blob/master/lib/https.js20* @externs21*/2223/**24BEGIN_NODE_INCLUDE25var https = require('https');26END_NODE_INCLUDE27*/2829var https = {};3031/**32* @constructor33* @extends tls.Server34*/35https.Server = function() {};3637/**38* @param {...*} var_args39*/40https.Server.prototype.listen = function(var_args) {};4142/**43* @param {function()=} callback44*/45https.Server.prototype.close = function(callback) {};4647/**48* @param {tls.CreateOptions} options49* @param {function(http.IncomingMessage, http.ServerResponse)=} requestListener50*/51https.createServer = function(options, requestListener) {};5253/**54* @typedef {{host: ?string, hostname: ?string, port: ?number, method: ?string, path: ?string, headers: ?Object.<string,string>, auth: ?string, agent: ?(https.Agent|boolean), pfx: ?(string|nodeBuffer.Buffer), key: ?(string|nodeBuffer.Buffer), passphrase: ?string, cert: ?(string|nodeBuffer.Buffer), ca: ?Array.<string>, ciphers: ?string, rejectUnauthorized: ?boolean}}55*/56https.ConnectOptions;5758/**59* @param {https.ConnectOptions|string} options60* @param {function(http.IncomingMessage)} callback61* @return {http.ClientRequest}62*/63https.request = function(options, callback) {};6465/**66* @param {https.ConnectOptions|string} options67* @param {function(http.IncomingMessage)} callback68* @return {http.ClientRequest}69*/70https.get = function(options, callback) {};7172/**73* @constructor74* @extends http.Agent75*/76https.Agent = function() {};7778/**79* @type {https.Agent}80*/81https.globalAgent;828384