Supported Dart 2, HttpStatusCode Enhancements, CI/Coverage Integration & Deprecation of Uppercase Constants#1
Merged
tech-andgar merged 8 commits intoDartForge:mainfrom Feb 13, 2024
Conversation
- Added description details for the new 'description' field in HttpStatus - Documented the transition to named parameters in HttpStatus constructor - Included changes to the toString() method in HttpStatus for a more comprehensive string representation - Enhanced the documentation sections for HttpStatusCode and HttpStatus, aiming at improved user guidance and clarity
Supported Dart 2, HttpStatusCode Enhancements, CI/Coverage Integration & Deprecation of Uppercase Constants
Contributor
Author
tech-andgar
added a commit
that referenced
this pull request
Feb 17, 2024
feat(http_status): Add methods to check HTTP status code ranges
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.
Added
Changed
descriptionField: Added a requireddescriptionfield to provide more context around HTTP status codes.toString()Method: Updated to includedescription, offering a more comprehensive string representation.HttpStatusCodeandHttpStatus, offering clearer guidelines and usage examples.Deprecated
HttpStatus(e.g.,HttpStatus.Not_Found) , adhering to the Dart effective style guide's recommendation:PREFER using lowerCamelCase for constant names. These uppercase items will be removed in the next version.HttpStatusCode(e.g.,HttpStatusCode.Not_Found,HttpStatusCode.NOT_FOUND) in favor of lowercase versions (e.g.,HttpStatusCode.notFound), adhering to the Dart effective style guide's recommendation:PREFER using lowerCamelCase for constant names. These uppercase items will be removed in the next version.Removed