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
Integrating the http/2 protocol into the plugin #138
Comments
Hey, @kostasoft thanks for raising this concern with us! We have this guide about how you could enable HTTP/2 in your meilisearch server https://docs.meilisearch.com/learn/cookbooks/http2_ssl.html. I'm not sure about adding this adapter to the client will have the desired effect you want. Do you mean that this client will make the requests using HTTP/2 if we adopt this adapter right? (just a way to force these requests to be made with HTTP/2). Can you help me understand better what you want/need? |
I was looking more about the topic in the dio: I found these two items regarding the fallback to HTTP/1 when HTTP/2 is not available: cfug/dio#972 and cfug/dio#1425 If the http2 adapter does not support the fallback by default, I cannot add that to the official SDK, because many users will be affected. What could be done instead is, to add a way for the user to create their own client and inject that into the client here: https://github.com/meilisearch/meilisearch-dart/blob/main/lib/src/http_request_impl.dart#L8 |
Hello!
|
Yes, I think this is the way to do it, we need to create a different http2 client and then inject it to the Unfortunately, I don't have the time to work on it now, since we are upgrading our SDKs to support the next version of Meilisearch (v0.26). |
Description
Could you add http/2 support to the plugin? I looked at your plugin source code and saw that you are using Dio. on the page of this plugin there is information about using this protocol.
Basic example
import 'package:dio/dio.dart';
import 'package:dio_http2_adapter/dio_http2_adapter.dart';
The text was updated successfully, but these errors were encountered: