Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request with headers #5

Open
awaik opened this issue Jan 12, 2023 · 1 comment
Open

Request with headers #5

awaik opened this issue Jan 12, 2023 · 1 comment

Comments

@awaik
Copy link

awaik commented Jan 12, 2023

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?

@hsy159
Copy link

hsy159 commented Jul 3, 2023

I have a same issue.. can't find Request with headers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants