Skip to content

chore: use common function for backend http requests#787

Merged
mcdurdin merged 4 commits into
masterfrom
chore/use-common-function-for-http-requests
Jun 16, 2026
Merged

chore: use common function for backend http requests#787
mcdurdin merged 4 commits into
masterfrom
chore/use-common-function-for-http-requests

Conversation

@mcdurdin

@mcdurdin mcdurdin commented Jun 12, 2026

Copy link
Copy Markdown
Member

Establish Util::call_api_keyman_com and Util::call_downloads_keyman_com as common functions for making http requests to these servers. Use curl instead of file_get_contents as it is more reliable and we have more control over parameters.

The pattern for now could stand to be refactored further in the future to provide API functions for each endpoint and reduce repetition and fragility.

Test-bot: skip

@keymanapp-test-bot

Copy link
Copy Markdown

User Test Results

Test specification and instructions

User tests are not required

@keymanapp-test-bot keymanapp-test-bot Bot added this to the A19S31 milestone Jun 12, 2026
Establish Util::call_api_keyman_com and Util::call_downloads_keyman_com
as common functions for making http requests to these servers. Use curl
instead of file_get_contents as it is more reliable and we have more
control over parameters.

The pattern for now could stand to be refactored further in the future
to provide API functions for each endpoint and reduce repetition and
fragility.

Test-bot: skip
@mcdurdin mcdurdin force-pushed the chore/use-common-function-for-http-requests branch from 0b9e537 to ece6d4f Compare June 12, 2026 15:01
@mcdurdin mcdurdin requested a review from ermshiperete June 12, 2026 15:12
Comment thread _includes/2020/Util.php
Comment thread _includes/2020/Util.php Outdated
@mcdurdin mcdurdin merged commit bf8ac1d into master Jun 16, 2026
5 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Keyman Jun 16, 2026
@mcdurdin mcdurdin deleted the chore/use-common-function-for-http-requests branch June 16, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants