| 
									
										
										
										
											2009-02-04 05:17:24 -05:00
										 |  |  | USING: http http.server math sequences continuations tools.test | 
					
						
							|  |  |  | io.encodings.utf8 io.encodings.binary accessors ;
 | 
					
						
							| 
									
										
										
										
											2008-06-04 20:54:05 -04:00
										 |  |  | IN: http.server.tests | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ t ] [ [ \ + first ] [ <500> ] recover response? ] unit-test | 
					
						
							| 
									
										
										
										
											2009-01-31 21:54:49 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-03-13 01:06:41 -05:00
										 |  |  | [ "text/plain; charset=ASCII" ] [ | 
					
						
							| 
									
										
										
										
											2009-02-04 05:17:24 -05:00
										 |  |  |     <response> | 
					
						
							|  |  |  |         "text/plain" >>content-type | 
					
						
							| 
									
										
										
										
											2010-03-13 01:06:41 -05:00
										 |  |  |         "ASCII" >>content-charset | 
					
						
							| 
									
										
										
										
											2009-02-04 05:17:24 -05:00
										 |  |  |     unparse-content-type | 
					
						
							|  |  |  | ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-03-13 01:06:41 -05:00
										 |  |  | [ "text/xml; charset=UTF-8" ] [ | 
					
						
							| 
									
										
										
										
											2009-02-04 05:17:24 -05:00
										 |  |  |     <response> | 
					
						
							|  |  |  |         "text/xml" >>content-type | 
					
						
							| 
									
										
										
										
											2010-03-13 01:06:41 -05:00
										 |  |  |     unparse-content-type | 
					
						
							|  |  |  | ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ "image/jpeg" ] [ | 
					
						
							|  |  |  |     <response> | 
					
						
							|  |  |  |         "image/jpeg" >>content-type | 
					
						
							|  |  |  |     unparse-content-type | 
					
						
							|  |  |  | ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ "application/octet-stream" ] [ | 
					
						
							|  |  |  |     <response> | 
					
						
							| 
									
										
										
										
											2009-02-04 05:17:24 -05:00
										 |  |  |     unparse-content-type | 
					
						
							|  |  |  | ] unit-test |