Feature/internal api url#691
Merged
rubenarslan merged 3 commits intoJun 11, 2026
Merged
Conversation
…plaintext caveats, changelog entry - Functions.php: hoist the host choice into $api_host with an explicit '' default for Config::get, instead of nesting rtrim/?:/addcslashes in one line. - config-dist: document that the internal hostname must reach an API-serving vhost (don't rely on first-vhost fall-through) and that the bearer token is plaintext HTTP on this URL. - CHANGELOG: Unreleased/Added entry.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Free Speed improvement by skipping DNS, TLS and Proxy when using the formr API in openCPU. Fallback is current behaviour.
Quick Benchmark for a api call (ca 30% faster):
Code:
Host: https://formr.rstudy.org/api
formr_api_sessions (n=100):
avg: 63.9 ms
min: 43.1 ms
max: 176.1 ms
p50: 58.9 ms
Host: http://formr_app/api
formr_api_sessions (n=100):
avg: 43.8 ms
min: 25.2 ms
max: 163.2 ms
p50: 38.5 ms