Closed vearutop closed 1 year ago
Language | Files | Lines | Code | Comments | Blanks | Complexity | Bytes |
---|---|---|---|---|---|---|---|
Go | 106 | 7656 (+31) | 5569 (+20) | 503 (+4) | 1584 (+7) | 936 (+9) | 185.5K (+1K) |
Go (test) | 48 | 5359 (+5) | 4099 (+5) | 185 | 1075 | 182 | 149.7K (+121B) |
JSON | 3 | 1570 (+19) | 1570 (+19) | 0 | 0 | 0 | 65K (+779B) |
# github.com/swaggest/rest ## compatible changes HTTPCodeAsError: added # summary Inferred base version: v0.2.42 Suggested version: v0.3.0
total: (statements) 83.4% changed lines: (statements) 71.4%, coverage is less than 90.0%, consider testing the changes more thoroughly
Fixes #146.
This PR introduces
rest.HTTPCodeAsError(304)
to simplify creation of errors with HTTP status. Advanced generic example of"/output-csv-writer", outputCSVWriter()
is upgraded to supportETag
headers.