Skip to content

chore: use common function for backend http requests#787

Open
mcdurdin wants to merge 1 commit into
masterfrom
chore/use-common-function-for-http-requests
Open

chore: use common function for backend http requests#787
mcdurdin wants to merge 1 commit 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants