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

Add local provider for the testing #64

Merged
merged 6 commits into from
Jan 29, 2025
Merged

Conversation

supercaracal
Copy link
Contributor

@supercaracal supercaracal commented Jan 24, 2025

I have a plan to implement benchmarking code for the performance tuning. But it seems that there is no easy way to do testing the server on local host. So I added a provider which serves local image files. We can access them via browser or so such that:

$ make run
$ curl -I 'http://localhost:3000/Lenna.jpg'
HTTP/1.1 200 OK
Server-Timing: f_load;dur=2.341667,f_decode;dur=65.713575,f_encode;dur=7.579446
Date: Fri, 24 Jan 2025 03:04:37 GMT
Content-Type: image/jpeg

It looks to me that the local_image_path setting is no longer used by any internal implementation.

@supercaracal supercaracal marked this pull request as ready for review January 24, 2025 03:06
@supercaracal supercaracal requested a review from etsxxx January 24, 2025 03:06
@supercaracal supercaracal merged commit 86b0622 into master Jan 29, 2025
2 checks passed
@supercaracal supercaracal deleted the add-local-provider branch January 29, 2025 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants