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

feat: method to get the Uri host (e.g. for ping) #800

Merged

Conversation

monsieurtanuki
Copy link
Contributor

What

  • This is a method we had to implement in Smoothie.
  • Typical use-case: trying to ping the server after a connection failed.
  • Now we can get the uri host directly.

Impacted file

  • uri_helper.dart: new getUriHost method

Impacted file:
* `uri_helper.dart`: new `getUriHost` method
Copy link
Member

@teolemon teolemon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, @g123k is about to open a related issue in Smoothie (pinging other servers when the product is not found in Open Food Facts)

@monsieurtanuki monsieurtanuki merged commit 081f0b9 into openfoodfacts:master Sep 7, 2023
5 checks passed
@monsieurtanuki
Copy link
Contributor Author

Nice, @g123k is about to open a related issue in Smoothie (pinging other servers when the product is not found in Open Food Facts)

Thank you @teolemon for your reviews!

The thing is that we don't have the other servers' hosts for the moment.
Do we use the same world.openfoodfacts.org host for all, or different hosts? Something like

  • world.openbeautyfacts.org
  • world.openpetfoodfacts.org
  • world.openproductsfacts.org

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

Successfully merging this pull request may close these issues.

None yet

2 participants