Skip to content

I think we have to add some filter for validating request methods #3

@Abdujabbar

Description

@Abdujabbar

In current class:
namespace Atom\Http\Message\Request;
I have seen that in __construct class can receive any string, and we can also just create a class like this:
$request = new Request('any_string');
but this is wrong in my opinion, maybe we will create some array for validating this.

protected $availableMethods = ['get', 'post', 'options' ...]

and than check is method in current array in
filterMethod($method)

What do think about this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions