Skip to content

Commit bb7d82a

Browse files
Added method for HTTP OPTIONS requests
1 parent 00bc2fe commit bb7d82a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Options
5454
+--------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
5555
| ``timeout`` | ``integer`` | no | Connection timeout, default is ``5`` |
5656
+--------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
57-
| ``verify_ssl`` | ``bool`` | no | Verify SSL when connect, use this option as ``false`` when need to test with self-signed certificates |
57+
| ``verify_ssl`` | ``bool`` | no | Verify SSL when connect, use this option as ``False`` when need to test with self-signed certificates |
5858
+--------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
5959

6060
Methods

woocommerce/api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,7 @@ def put(self, endpoint, data):
9494
def delete(self, endpoint):
9595
""" DELETE requests """
9696
return self.__request("DELETE", endpoint, None)
97+
98+
def options(self, endpoint):
99+
""" OPTIONS requests """
100+
return self.__request("OPTIONS", endpoint, None)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy