Add SURFLET-RESPONSE->STRING for debug purpose.
This commit is contained in:
		
							parent
							
								
									c7bdc50564
								
							
						
					
					
						commit
						220ac99930
					
				| 
						 | 
				
			
			@ -70,6 +70,13 @@
 | 
			
		|||
(define (valid-surflet-response-data? data)
 | 
			
		||||
  (or (string? data) (list? data)))
 | 
			
		||||
 | 
			
		||||
(define (surflet-response->string surflet-response)
 | 
			
		||||
  (format #f "#{Surflet-response Status: ~a Content-Type: ~s Headers: ~s~%~s~%"
 | 
			
		||||
	  (surflet-response-status surflet-response)
 | 
			
		||||
	  (surflet-response-content-type surflet-response)
 | 
			
		||||
	  (surflet-response-headers surflet-response)
 | 
			
		||||
	  (surflet-response-data surflet-response)))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
;; Surflet-prefix is unused now. Formerly, it contained the virtual
 | 
			
		||||
;; path prefix for the handler.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue