X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http%2FMessage%2FParser.md;h=4cfdb19f764fa2711f28c268d9149f99dedd33d6;hb=HEAD;hp=78398fdbc0bc7c8ca64c3a076b4baaa6608301fc;hpb=08aadf818178f22708060ccac7ff7c9bb8e079dd;p=mdref%2Fmdref-http diff --git a/http/Message/Parser.md b/http/Message/Parser.md index 78398fd..4cfdb19 100644 --- a/http/Message/Parser.md +++ b/http/Message/Parser.md @@ -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.