Skip to content

Commit

Permalink
add support for posting data in the Clienter (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAndrei98 authored Jul 17, 2023
1 parent c3a6fc4 commit 2e29677
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/keri/app/httping.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def __init__(self):
doers = [doing.doify(self.clientDo)]
super(Clienter, self).__init__(doers=doers)

def request(self, method, url):
def request(self, method, url, body=None, headers=None):
purl = parse.urlparse(url)

client = http.clienting.Client(scheme=purl.scheme,
Expand All @@ -230,6 +230,8 @@ def request(self, method, url):
method=method,
path=f"{purl.path}?{purl.query}",
qargs=None,
headers=headers,
body=body
)

clientDoer = http.clienting.ClientDoer(client=client)
Expand Down

0 comments on commit 2e29677

Please sign in to comment.