socks_proxy
socks_proxy copied to clipboard
Request with headers
Can't find how to make requests with headers.
For example, with regular HTTP request we can use
Future<Album> fetchAlbum() async {
final response = await http.get(
Uri.parse('https://jsonplaceholder.typicode.com/albums/1'),
// Send authorization headers to the backend.
headers: {
HttpHeaders.authorizationHeader: 'Basic your_api_token_here',
},
);
How we can do the same with the proxy?
I have a same issue.. can't find Request with headers.