Skip to content

Commit

Permalink
fix elastic curl
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Aug 21, 2024
1 parent 2c2ad5f commit ae1aad1
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions Source/Elasticurl/Elasticurl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -276,22 +276,6 @@ struct Elasticurl {
}
httpRequest.addHeaders(headers: headers)

let onResponse: HTTPRequestOptions.OnResponse = { _, headers in
for header in headers {
print(header.name + " : " + header.value)
}
}

let onBody: HTTPRequestOptions.OnIncomingBody = { bodyChunk in
writeData(data: bodyChunk)
}

let onComplete: HTTPRequestOptions.OnStreamComplete = { result in
print(result)

semaphore.signal()
}

let httpClientOptions = HTTPClientConnectionOptions(clientBootstrap: bootstrap,
hostName: context.url.host!,
initialWindowSize: Int.max,
Expand Down

0 comments on commit ae1aad1

Please sign in to comment.