init() {
		this.params = urlLib.parse(this.options.url);
		this.params.headers = {};
		if (this.options.headers) {
			this.params.headers = this.options.headers;
		}
		if (this.options.cert && this.options.key) {
			this.params.cert = this.options.cert;
			this.params.key = this.options.key;
		}
		this.params.agent = false;
		if (this.options.body) {
			if (typeof this.options.body == 'string') {
				this.generateMessage = () => this.options.body;
			} else if (typeof this.options.body == 'object') {
				this.generateMessage = () => this.options.body;
			} else if (typeof this.options.body == 'function') {
				this.generateMessage = this.options.body;
			} else {
				console.error('Unrecognized body: %s', typeof this.options.body);
			}
			this.params.headers['Content-Type'] = this.options.contentType || 'text/plain';
		}
		addUserAgent(this.params.headers);
		if (this.options.secureProtocol) {
			this.params.secureProtocol = this.options.secureProtocol;
		}
	}
Init params and message to send.