{"id":16315189,"url":"https://github.com/robrwo/catalyst-traitfor-request-methods-","last_synced_at":"2025-07-06T21:11:35.000Z","repository":{"id":49900588,"uuid":"201891281","full_name":"robrwo/Catalyst-TraitFor-Request-Methods-","owner":"robrwo","description":"Add enumerated methods for HTTP requests","archived":false,"fork":false,"pushed_at":"2023-06-14T14:37:57.000Z","size":62,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T17:56:49.099Z","etag":null,"topics":["catalyst","http","perl"],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robrwo.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-12T08:41:45.000Z","updated_at":"2022-07-27T11:46:37.000Z","dependencies_parsed_at":"2024-11-06T09:23:43.385Z","dependency_job_id":"92bcd152-d4a2-427c-a8dd-19cd3512cb8c","html_url":"https://github.com/robrwo/Catalyst-TraitFor-Request-Methods-","commit_stats":{"total_commits":54,"total_committers":1,"mean_commits":54.0,"dds":0.0,"last_synced_commit":"a14939d86d0763cc12fb12bad6e397b6e213f401"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robrwo%2FCatalyst-TraitFor-Request-Methods-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robrwo%2FCatalyst-TraitFor-Request-Methods-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robrwo%2FCatalyst-TraitFor-Request-Methods-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robrwo%2FCatalyst-TraitFor-Request-Methods-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robrwo","download_url":"https://codeload.github.com/robrwo/Catalyst-TraitFor-Request-Methods-/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252566518,"owners_count":21769052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["catalyst","http","perl"],"created_at":"2024-10-10T21:56:29.306Z","updated_at":"2025-05-05T19:52:40.730Z","avatar_url":"https://github.com/robrwo.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nCatalyst::TraitFor::Request::Methods - Add enumerated methods for HTTP requests\n\n# VERSION\n\nversion v0.5.2\n\n# SYNOPSIS\n\nIn the [Catalyst](https://metacpan.org/pod/Catalyst) class\n\n```perl\n__PACKAGE__-\u003econfig(\n  request_class_traits =\u003e [\n      'Methods'\n  ]\n);\n```\n\nIn any code that uses a [Catalyst::Request](https://metacpan.org/pod/Catalyst%3A%3ARequest), e.g.\n\n```\nif ($c-\u003erequest-\u003eis_post) {\n    ...\n}\n```\n\n# DESCRIPTION\n\nThis trait adds enumerated methods from RFC 7231 and RFC 5789 for\nchecking the HTTP request method.\n\nUsing these methods is a less error-prone alternative to checking a\ncase-sensitive string with the method name.\n\nIn other words, you can use\n\n```\n$c-\u003erequest-\u003eis_get\n```\n\ninstead of\n\n```\n$c-\u003erequest-\u003emethod eq \"GET\"\n```\n\nThe methods are implemented as lazy read-only attributes.\n\n# METHODS\n\n## is\\_get\n\nThe request method is `GET`.\n\n## is\\_head\n\nThe request method is `HEAD`.\n\n## is\\_post\n\nThe request method is `POST`.\n\n## is\\_put\n\nThe request method is `PUT`.\n\n## is\\_delete\n\nThe request method is `DELETE`.\n\n## is\\_connect\n\nThe request method is `CONNECT`.\n\n## is\\_options\n\nThe request method is `OPTIONS`.\n\n## is\\_trace\n\nThe request method is `TRACE`.\n\n## is\\_patch\n\nThe request method is `PATCH`.\n\n## is\\_unrecognized\\_method\n\nThe request method is not recognized.\n\n# SUPPORT FOR OLDER PERL VERSIONS\n\nThis module requires Perl v5.14 or later.\n\nFuture releases may only support Perl versions released in the last ten years.\n\n# SEE ALSO\n\n[Catalyst::Request](https://metacpan.org/pod/Catalyst%3A%3ARequest)\n\n# SOURCE\n\nThe development version is on github at [https://github.com/robrwo/Catalyst-TraitFor-Request-Methods-](https://github.com/robrwo/Catalyst-TraitFor-Request-Methods-)\nand may be cloned from [git://github.com/robrwo/Catalyst-TraitFor-Request-Methods-.git](git://github.com/robrwo/Catalyst-TraitFor-Request-Methods-.git)\n\n# BUGS\n\nPlease report any bugs or feature requests on the bugtracker website\n[https://github.com/robrwo/Catalyst-TraitFor-Request-Methods-/issues](https://github.com/robrwo/Catalyst-TraitFor-Request-Methods-/issues)\n\nWhen submitting a bug or request, please include a test-file or a\npatch to an existing test-file that illustrates the bug or desired\nfeature.\n\n# AUTHOR\n\nRobert Rothenberg \u003crrwo@cpan.org\u003e\n\n# COPYRIGHT AND LICENSE\n\nThis software is Copyright (c) 2019-2023 by Robert Rothenberg.\n\nThis is free software, licensed under:\n\n```\nThe Artistic License 2.0 (GPL Compatible)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobrwo%2Fcatalyst-traitfor-request-methods-","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobrwo%2Fcatalyst-traitfor-request-methods-","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobrwo%2Fcatalyst-traitfor-request-methods-/lists"}