OPTIONS request method not available? #1766
-
Hello, I am using got to do some data preparation/ cleanup via api for a bunch of e2e tests (webdriverio). I have been using post, put, delete and get calls so far. Now I have a specific scenario where I need to make an Am I missing something or is this method not supported ? Can I find a way around it ? I basically need to extract a specific header from that OPTIONS call and pass it in a POST, otherwise I cannot auth. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There's no convenience method for it (e.g. |
Beta Was this translation helpful? Give feedback.
There's no convenience method for it (e.g.
got.post
), but you can pass any HTTP method themethod
option (e.g.got(url, {method: 'OPTIONS'})
).