message
[mdref/mdref-http] / http / Message / setRequestMethod.md
1 # http\Message http\Message::setRequestMethod(string $method)
2
3 Set the request method of the message.
4 See http\Message::getRequestMethod() and http\Message::setRequestUrl().
5
6 ## Params:
7
8 * string $method
9 The request method.
10
11 ## Returns:
12
13 * http\Message, self.
14 * false, if the message was not of type request.
15
16 ## Notices:
17
18 * E_MESSAGE_TYPE, if the message is not of type request.
19
20 ## Warnings:
21
22 * E_INVALID_PARAM, if the method is of zero length.