HttpMethodEnum::hasBody(): bool

In this article

Checks if this method typically has a request body.

Return

bool True if the method typically has a body, false otherwise.

Source

public function hasBody(): bool
{
    return in_array($this->value, [self::POST, self::PUT, self::PATCH], \true);
}

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.