acceptverbs httpverbs.get?

1.6k views Asked by At

What is the use of it???? acceptverbs(httpverbs.get) and explain about the httpverbs.post too..

thanks

1

There are 1 answers

0
tvanfosson On BEST ANSWER

When applied to an action, it restricts the action to only requests made with that particular HTTP verb, i.e., GET or POST. Even if a different type of request than specified comes in that would match based on the name and signature, it won't match because the request type is not allowed.