You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							36 lines
						
					
					
						
							1.6 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							36 lines
						
					
					
						
							1.6 KiB
						
					
					
				
								    </div>
							 | 
						|
								    <a href="http://github.com/visionmedia/superagent"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png" alt="Fork me on GitHub"></a>
							 | 
						|
								    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
							 | 
						|
								    <script>
							 | 
						|
								      $('code').each(function(){
							 | 
						|
								        $(this).html(highlight($(this).text()));
							 | 
						|
								      });
							 | 
						|
								
							 | 
						|
								      function highlight(js) {
							 | 
						|
								        return js
							 | 
						|
								          .replace(/</g, '<')
							 | 
						|
								          .replace(/>/g, '>')
							 | 
						|
								          .replace(/('.*?')/gm, '<span class="string">$1</span>')
							 | 
						|
								          .replace(/(\d+\.\d+)/gm, '<span class="number">$1</span>')
							 | 
						|
								          .replace(/(\d+)/gm, '<span class="number">$1</span>')
							 | 
						|
								          .replace(/\bnew *(\w+)/gm, '<span class="keyword">new</span> <span class="init">$1</span>')
							 | 
						|
								          .replace(/\b(function|new|throw|return|var|if|else)\b/gm, '<span class="keyword">$1</span>')
							 | 
						|
								      }
							 | 
						|
								    </script>
							 | 
						|
								    <script src="https://cdnjs.cloudflare.com/ajax/libs/tocbot/3.0.0/tocbot.js"></script>
							 | 
						|
								    <script>
							 | 
						|
								      // Only use tocbot for main docs, not test docs
							 | 
						|
								      if (document.querySelector('#superagent')) {
							 | 
						|
								        tocbot.init({
							 | 
						|
								          // Where to render the table of contents.
							 | 
						|
								          tocSelector: '#menu',
							 | 
						|
								          // Where to grab the headings to build the table of contents.
							 | 
						|
								          contentSelector: '#content',
							 | 
						|
								          // Which headings to grab inside of the contentSelector element.
							 | 
						|
								          headingSelector: 'h2',
							 | 
						|
								          smoothScroll: false
							 | 
						|
								        });
							 | 
						|
								      }
							 | 
						|
								    </script>
							 | 
						|
								  </body>
							 | 
						|
								</html>
							 | 
						|
								
							 |