Search code examples
ruby-on-railshttphttp-verbs

what is OPTIONS type in request type?


I have used GET & POST ,DELETE etc. but what is this OPTIONS for? What different does it do in the controller side?


Solution

  • Those request methods are request-response between a client and server,

    OPTIONS Returns the HTTP methods that the server supports
    

    You can read more details from w3Schools