Teapot.AspNetCore
1.0.2
dotnet add package Teapot.AspNetCore --version 1.0.2
NuGet\Install-Package Teapot.AspNetCore -Version 1.0.2
<PackageReference Include="Teapot.AspNetCore" Version="1.0.2" />
paket add Teapot.AspNetCore --version 1.0.2
#r "nuget: Teapot.AspNetCore, 1.0.2"
// Install Teapot.AspNetCore as a Cake Addin #addin nuget:?package=Teapot.AspNetCore&version=1.0.2 // Install Teapot.AspNetCore as a Cake Tool #tool nuget:?package=Teapot.AspNetCore&version=1.0.2
Info
This is a simple library including a 'teapot' endpoint with a 'brewcoffee' method.
The Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0) states the following:
Any attempt to brew coffee with a teapot should result in the error code "418 I'm a teapot". The resulting entity body MAY be short and stout.
.
I hear you think, what is the use of this random teapot/brewcoffee endpoint if you're not creating an API for a controllable teapot? Well, you might want to:
- check whether your API is up and running;
- start your application afer deploying it;
- prevent application pool recycling;
- add it as a joke (that is how this status code was born after all).
Quick-Start
- Install the library from NuGet into your .NET Core 3 API project.
- In ConfigureServices in your startup.cs call
.AddTeapot()
on the IMvcBuilder, for example:
public void ConfigureServices(IServiceCollection services) { services.AddControllers().AddTeapot(); }
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 is compatible. netcoreapp3.1 was computed. |
-
.NETCoreApp 3.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.2 | 566 | 10/25/2019 |