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

HttpClientWithInterceptor.send #37

Closed
MichelFortes opened this issue Aug 11, 2020 · 4 comments
Closed

HttpClientWithInterceptor.send #37

MichelFortes opened this issue Aug 11, 2020 · 4 comments
Labels
question Further information is requested

Comments

@MichelFortes
Copy link

Hello guys.
It looks like httpClientWithInterceptor.send(BaseRequest request) doesn't use interceptors, retry policies and request timeouts.
Is this a desired behavior?
Best regards

@issue-label-bot
Copy link

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

@CodingAleCR CodingAleCR added the question Further information is requested label Aug 11, 2020
@CodingAleCR
Copy link
Owner

Hi, at the moment yes, send is used internally and I have not worked on adding support for it just yet. It is, however, in the close roadmap goals.

@CodingAleCR
Copy link
Owner

Using send method was added on #98 and to the 2.0.0 beta, feel free to try it out if you want ;)

@dexcell
Copy link

dexcell commented Nov 26, 2021

@CodingAleCR
send method still not available on 2.0.0 beta2
Could you please add to 2.0.0 beta3

I need to post form data with multipart usingsend
perhaps something like this:

// Create normal http request
http.MultipartRequest request = new http.MultipartRequest("POST", Uri.parse("$baseUrl/account/profile"));

// Add some file
request.files.add(await http.MultipartFile.fromPath(entry.key, entry.value.path, contentType: MediaType('image', 'jpeg')));

// Use intercepted http to send the request
final http.StreamedResponse response = await interceptedHttp.send(request);

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

No branches or pull requests

3 participants