Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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