Skip to content

Commit a89130d

Browse files
author
Joe Grund
committed
Add more request options
This patch adds some more request options I'd like to have. Signed-off-by: Joe Grund <[email protected]>
1 parent 0a1683b commit a89130d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Node/HTTP/Client.purs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ module Node.HTTP.Client
1313
, path
1414
, headers
1515
, auth
16+
, key
17+
, cert
18+
, rejectUnauthorized
1619
, family
1720
, request
1821
, requestFromURI
@@ -81,6 +84,18 @@ headers = opt "headers"
8184
auth :: Option RequestOptions String
8285
auth = opt "auth"
8386

87+
-- | Private Key
88+
key :: Option RequestOptions String
89+
key = opt "key"
90+
91+
-- | Public x509 certificate
92+
cert :: Option RequestOptions String
93+
cert = opt "cert"
94+
95+
-- | Is cert verified against CAs
96+
rejectUnauthorized :: Option RequestOptions Boolean
97+
rejectUnauthorized = opt "rejectUnauthorized"
98+
8499
-- | IP address family to use when resolving `hostname`.
85100
-- | Valid values are `IPV6` and `IPV4`
86101
family :: Option RequestOptions RequestFamily

0 commit comments

Comments
 (0)