How to get verbose info
Closed this issue · 3 comments
rick000 commented
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
ajinasokan commented
You can enable it while creating the Client. https://github.com/ajinasokan/flutter_curl/blob/master/lib/src/client.dart#L50
rick000 commented
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?
ajinasokan commented
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