mdref.json config
[mdref/mdref-http] / http / Message / Parser.md
index 78398fdbc0bc7c8ca64c3a076b4baaa6608301fc..4cfdb19f764fa2711f28c268d9149f99dedd33d6 100644 (file)
@@ -2,11 +2,8 @@
 
 The parser which is underlying http\Message.
 
-## Changelog:
-
-| Version | Change 
-|---------|--------
-| 2.2.0   | Added http\Message\Parser API
+> ***NOTE:***
+> This class was added in v2.2.0.
 
 ## Constants:
 
@@ -36,10 +33,15 @@ The parser which is underlying http\Message.
 * STATE_BODY_DUMB  
   Soaking up all input as body.
 * STATE_BODY_LENGTH  
-  Reading body as indicated by `Content-Lenght` or `Content-Range`.
+  Reading body as indicated by `Content-Length` or `Content-Range`.
 * STATE_BODY_CHUNKED  
   Parsing `chunked` encoded body.
 * STATE_BODY_DONE  
   Finished parsing the body.
+* STATE_UPDATE_CL  
+  Updating Content-Length based on body size.
 * STATE_DONE  
   Finished parsing the message.
+
+> ***NOTE:***  
+> Most of this states won't be returned to the user, because the parser immediately jumps to the next expected state.