connectrpc / connect-swift

The Swift implementation of Connect: Protobuf RPC that works.
https://connectrpc.com/docs/swift/getting-started
Apache License 2.0
93 stars 17 forks source link

Is it possible to see the underlying request? #251

Closed oliverfoggin closed 5 months ago

oliverfoggin commented 5 months ago

I'm getting some errors setting up this SDK for the first time with a new back end too.

But, I'm not sure where exactly the errors are coming from or why.

Is it possible to see the full underlying request (i.e. path, method, body, host, headers, etc...) so that I can try to debug what I'm doing wrong?

Thanks

oliverfoggin commented 5 months ago

I changed from the NIOHttpClient to a URLSessionHTTPClient and it's showing up in Proxyman now 😄

rebello95 commented 5 months ago

Glad you got this working. I'd generally suggest using URLSessionHTTPClient over NIO unless you require the gRPC protocol (lighter binary size and simpler to use).