ajinasokan/flutter_curl

How to get verbose info

Closed this issue · 3 comments

Hi,
I'm new to flutter_curl, but I use curl a lot, can you tell me how to use flutter_curl to retrive verbose info, just like get output from curl -v $url

You can enable it while creating the Client. https://github.com/ajinasokan/flutter_curl/blob/master/lib/src/client.dart#L50

I mean can I retrive verbose info by code? not watch verbose from logs, is that possible?

You could use the logsFor function and give the your Request object. It will return back a stream of logs. https://github.com/ajinasokan/flutter_curl/blob/master/lib/src/client.dart#L46