mirror of
				https://github.com/django/daphne.git
				synced 2025-11-04 01:27:33 +03:00 
			
		
		
		
	Add closed message to request bodies to allow fast failure
This commit is contained in:
		
							parent
							
								
									d72f99df94
								
							
						
					
					
						commit
						acd31a663d
					
				| 
						 | 
					@ -496,6 +496,11 @@ Keys:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* ``content``: Byte string of HTTP body content, will be concatenated onto
 | 
					* ``content``: Byte string of HTTP body content, will be concatenated onto
 | 
				
			||||||
  previously received ``content`` values and ``body`` key in Request.
 | 
					  previously received ``content`` values and ``body`` key in Request.
 | 
				
			||||||
 | 
					  Not required if ``closed`` is True, required otherwise.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					* ``closed``: True if the client closed the connection prematurely and the
 | 
				
			||||||
 | 
					  rest of the body. If you receive this, abandon processing of the HTTP request.
 | 
				
			||||||
 | 
					  Optional, defaults to ``False``.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* ``more_content``: Boolean value signifying if there is additional content
 | 
					* ``more_content``: Boolean value signifying if there is additional content
 | 
				
			||||||
  to come (as part of a Request Body Chunk message). If ``False``, request will
 | 
					  to come (as part of a Request Body Chunk message). If ``False``, request will
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user