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

feature: code generation-based implementation #46

Draft
wants to merge 69 commits into
base: 0.6.0
Choose a base branch
from

Conversation

xdrm-io
Copy link
Owner

@xdrm-io xdrm-io commented Jun 25, 2023

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Oct 3, 2023

Codecov Report

Merging #46 (c870fa4) into 0.6.0 (1186ddc) will increase coverage by 8.33%.
The diff coverage is 99.70%.

@@            Coverage Diff             @@
##            0.6.0      #46      +/-   ##
==========================================
+ Coverage   91.41%   99.75%   +8.33%     
==========================================
  Files          22       23       +1     
  Lines         943      800     -143     
==========================================
- Hits          862      798      -64     
+ Misses         48        1      -47     
+ Partials       33        1      -32     
Files Coverage Δ
builder.go 100.00% <100.00%> (ø)
errors.go 100.00% <100.00%> (ø)
handler.go 100.00% <100.00%> (+18.18%) ⬆️
internal/config/api.go 100.00% <100.00%> (ø)
internal/config/endpoint.go 100.00% <100.00%> (ø)
internal/config/errors.go 100.00% <ø> (ø)
internal/config/index.go 100.00% <100.00%> (ø)
internal/config/parameter.go 100.00% <100.00%> (ø)
runtime/ctx.go 100.00% <100.00%> (ø)
runtime/errors.go 100.00% <100.00%> (ø)
... and 11 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@xdrm-io xdrm-io changed the base branch from 0.5.0 to 0.6.0 October 6, 2023 06:31
@xdrm-io xdrm-io self-assigned this Oct 9, 2023
 - index by method and number of fragments
 - limitation: the config file must be UNDER the generated folder
 - do not use json.Marshal on simple responses with an error and no data
 - reduces by 50% the time, memory and allocations on big requests
 - also test invalid content type and no content type
 - improves memory by 10% and time by 3%
 - add panics on non 200 status and invalid form parsing
 - add missing content-type headers for form requests
 - do not use GET for form requests
 - add URI parameters in uri requests
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