Skip to content

Commit a7ccb11

Browse files
committed
add request body to transport
1 parent f74f0d1 commit a7ccb11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nimastic/transport.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ type
1212
# http
1313
Method*: HttpMethod
1414
Query*: string
15+
Body*: string
1516
Timeout*: int
1617

1718

@@ -36,5 +37,5 @@ method estransport*(this: elClient): Response =
3637
# concat url in elasticsearch.Url with query in elasticsearch.Query
3738
let uri = this.Url[0] & this.Endpoint & "?" & this.Query
3839

39-
return client.request(uri, httpMethod = this.Method)
40+
return client.request(uri, httpMethod = this.Method, body = this.Body)
4041

0 commit comments

Comments
 (0)