https://github.com/technobre/powerutils.net.primitives
Provides additional types and constants for network-based libraries.
https://github.com/technobre/powerutils.net.primitives
csharp dotnet helpers utils
Last synced: about 1 year ago
JSON representation
Provides additional types and constants for network-based libraries.
- Host: GitHub
- URL: https://github.com/technobre/powerutils.net.primitives
- Owner: TechNobre
- License: mit
- Created: 2021-11-21T14:16:23.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-11T00:23:41.000Z (about 1 year ago)
- Last Synced: 2025-04-30T15:48:08.424Z (about 1 year ago)
- Topics: csharp, dotnet, helpers, utils
- Language: C#
- Homepage: https://www.nuget.org/packages/PowerUtils.Net.Primitives
- Size: 238 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
# PowerUtils.Net.Primitives

***Provides additional types and constants for network-based libraries***

[](https://dashboard.stryker-mutator.io/reports/github.com/TechNobre/PowerUtils.Net.Primitives/main)
[](https://sonarcloud.io/summary/new_code?id=TechNobre_PowerUtils.Net.Primitives)
[](https://sonarcloud.io/summary/new_code?id=TechNobre_PowerUtils.Net.Primitives)
[](https://sonarcloud.io/summary/new_code?id=TechNobre_PowerUtils.Net.Primitives)
[](https://sonarcloud.io/summary/new_code?id=TechNobre_PowerUtils.Net.Primitives)
[](https://www.nuget.org/packages/PowerUtils.Net.Primitives)
[](https://www.nuget.org/packages/PowerUtils.Net.Primitives)
[](https://github.com/TechNobre/PowerUtils.Net.Primitives/blob/main/LICENSE)
- [Support to ](#support-to-)
- [How to use ](#how-to-use-)
- [Install NuGet package ](#install-nuget-package-)
- [Helpers ](#helpers-)
- [ExtendedMediaTypeNames ](#extendedmediatypenames-)
- [StatusCodeLink ](#statuscodelink-)
- [Contribution ](#contribution-)
## Support to
- .NET 9.0
- .NET 8.0
- .NET 7.0
- .NET 6.0
- .NET 5.0
- .NET 3.1
### Install NuGet package
This package is available through Nuget Packages: https://www.nuget.org/packages/PowerUtils.Net.Primitives
**Nuget**
```bash
Install-Package PowerUtils.Net.Primitives
```
**.NET CLI**
```
dotnet add package PowerUtils.Net.Primitives
```
#### ExtendedMediaTypeNames
- **Contains:** `ProblemApplication`
- `ExtendedMediaTypeNames.ProblemApplication.JSON`;
- `ExtendedMediaTypeNames.ProblemApplication.XML`;
- **Contains:** `Multipart`
- `ExtendedMediaTypeNames.Multipart.FORM_DATA`;
#### StatusCodeLink
- **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](https://github.com/TechNobre/PowerUtils.Net.Primitives/issues/new/choose) or create a [pull request](https://github.com/TechNobre/PowerUtils.Net.Primitives/compare)