mdref.json config
[mdref/mdref-http] / http / Message / reverse.md
1 # http\Message http\Messae::reverse()
2
3 Reverse the message chain and return the former top-most message.
4
5 > ***NOTE:***
6 > Message chains are ordered in reverse-parsed order by default, i.e. the last parsed message is the message you'll receive from any call parsing HTTP messages.
7 >
8 > This call re-orders the messages of the chain and returns the message that was parsed first with any later parsed messages re-parentized.
9
10 ## Params:
11
12 None.
13
14 ## Returns:
15
16 * http\Message, the other end of the message chain.
17
18 ## Throws:
19
20 * http\Exception\InvalidArgumentException