Provides additional types and constants for network-based libraries
- .NET 8.0
- .NET 7.0
- .NET 6.0
- .NET 5.0
- .NET 3.1
This package is available through Nuget Packages: https://www.nuget.org/packages/PowerUtils.Net.Primitives
Nuget
Install-Package PowerUtils.Net.Primitives
.NET CLI
dotnet add package PowerUtils.Net.Primitives
- Contains:
ProblemApplication
ExtendedMediaTypeNames.ProblemApplication.JSON
;ExtendedMediaTypeNames.ProblemApplication.XML
;
- Contains:
Multipart
ExtendedMediaTypeNames.Multipart.FORM_DATA
;
-
Contains:
StatusCodeLink.STATUS_CODES
;StatusCodeLink.BAD_REQUEST
;StatusCodeLink.UNAUTHORIZED
;StatusCodeLink.PAYMENT_REQUIRED
;StatusCodeLink.FORBIDDEN
;StatusCodeLink.NOT_FOUND
;StatusCodeLink.METHOD_NOT_ALLOWED
;StatusCodeLink.NOT_ACCEPTABLE
;StatusCodeLink.PROXY_AUTHENTICATION_REQUIRED
;StatusCodeLink.REQUEST_TIMEOUT
;StatusCodeLink.CONFLICT
;StatusCodeLink.GONE
;StatusCodeLink.LENGTH_REQUIRED
;StatusCodeLink.PRECONDITION_FAILED
;StatusCodeLink.REQUEST_ENTITY_TOO_LARGE
;StatusCodeLink.REQUEST_URI_TOO_LONG
;StatusCodeLink.UNSUPPORTED_MEDIA_TYPE
;StatusCodeLink.REQUESTED_RANGE_NOT_SATISFIABLE
;StatusCodeLink.EXPECTATION_FAILED
;StatusCodeLink.I_AM_A_TEAPOT
;StatusCodeLink.UNPROCESSABLE_ENTITY
;StatusCodeLink.TOO_EARLY
;StatusCodeLink.UPGRADE_REQUIRED
;StatusCodeLink.PRECONDITION_REQUIRED
;StatusCodeLink.TOO_MANY_REQUESTS
;StatusCodeLink.REQUEST_HEADER_FIELDS_TOO_LARGE
;StatusCodeLink.UNAVAILABLE_FOR_LEGAL_REASONS
;StatusCodeLink.INTERNAL_SERVER_ERROR
;StatusCodeLink.NOT_IMPLEMENTED
;StatusCodeLink.BAD_GATEWAY
;StatusCodeLink.SERVICE_UNAVAILABLE
;StatusCodeLink.GATEWAY_TIMEOUT
;StatusCodeLink.HTTP_VERSION_NOT_SUPPORTED
;StatusCodeLink.VARIANT_ALSO_NEGOTIATES
;StatusCodeLink.INSUFFICIENT_STORAGE
;StatusCodeLink.LOOP_DETECTED
;StatusCodeLink.NOT_EXTENDED
;StatusCodeLink.NETWORK_AUTHENTICATION_REQUIRED
;
-
Methods:
StatusCodeLink.GetStatusCodeLink(this int statuCode)
: Get documentation link by status code;StatusCodeLink.GetStatusCodeLink(this int? statuCode)
: Get documentation link by status code;StatusCodeLink.GetStatusCodeLinkOrDefault(this int statuCode)
: Get documentation link by status code;
If you have any questions, comments, or suggestions, please open an issue or create a pull request