mirror of
				https://github.com/cp6/my-idlers.git
				synced 2025-11-03 23:59:09 +00:00 
			
		
		
		
	
		
			
	
	
		
			23 lines
		
	
	
	
		
			373 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
		
		
			
		
	
	
			23 lines
		
	
	
	
		
			373 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| 
								 | 
							
								# https-browserify
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								https module compatability for browserify
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# example
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								``` js
							 | 
						||
| 
								 | 
							
								var https = require('https-browserify')
							 | 
						||
| 
								 | 
							
								var r = https.request('https://github.com')
							 | 
						||
| 
								 | 
							
								r.on('request', function (res) {
							 | 
						||
| 
								 | 
							
								  console.log(res)
							 | 
						||
| 
								 | 
							
								})
							 | 
						||
| 
								 | 
							
								```
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# methods
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								The API is the same as the client portion of the
							 | 
						||
| 
								 | 
							
								[node core https module](http://nodejs.org/docs/latest/api/https.html).
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# license
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								MIT
							 |