![]() |
VOOZH | about |
dotnet add package WebJobs.Extensions.HttpApi --version 3.0.5
NuGet\Install-Package WebJobs.Extensions.HttpApi -Version 3.0.5
<PackageReference Include="WebJobs.Extensions.HttpApi" Version="3.0.5" />
<PackageVersion Include="WebJobs.Extensions.HttpApi" Version="3.0.5" />Directory.Packages.props
<PackageReference Include="WebJobs.Extensions.HttpApi" />Project file
paket add WebJobs.Extensions.HttpApi --version 3.0.5
#r "nuget: WebJobs.Extensions.HttpApi, 3.0.5"
#:package WebJobs.Extensions.HttpApi@3.0.5
#addin nuget:?package=WebJobs.Extensions.HttpApi&version=3.0.5Install as a Cake Addin
#tool nuget:?package=WebJobs.Extensions.HttpApi&version=3.0.5Install as a Cake Tool
👁 Build
👁 Downloads
👁 NuGet
👁 License
# For .NET 6/8 In-Process
Install-Package WebJobs.Extensions.HttpApi
# For .NET Isolated Worker
Install-Package Functions.Worker.Extensions.HttpApi
# For .NET 6/8 In-Process
dotnet add package WebJobs.Extensions.HttpApi
# For .NET Isolated Worker
dotnet add package Functions.Worker.Extensions.HttpApi
// Inherits from `HttpFunctionBase` class
public class Function1(IHttpContextAccessor httpContextAccessor) : HttpFunctionBase(httpContextAccessor)
{
[FunctionName("Function1")]
public IActionResult Run(
[HttpTrigger(AuthorizationLevel.Function, "get")] HttpRequest req,
ILogger log)
{
return Ok($"Hello, {req.Query["name"]}");
}
}
public class Function1(IHttpContextAccessor httpContextAccessor) : HttpFunctionBase(httpContextAccessor)
{
[FunctionName("Function1")]
public IActionResult Run(
[HttpTrigger(AuthorizationLevel.Function, "post")]
SampleModel model,
ILogger log)
{
if (!TryValidateModel(model))
{
return BadRequest(ModelState);
}
return Ok(model);
}
}
public class SampleModel
{
[Required]
public string Name { get; set; }
public string[] Array { get; set; }
[Range(100, 10000)]
public int Price { get; set; }
}
public class Function2(IHttpContextAccessor httpContextAccessor) : HttpFunctionBase(httpContextAccessor)
{
[FunctionName("Function2")]
public IActionResult Run(
[HttpTrigger(AuthorizationLevel.Function, "get")]
HttpRequest req,
ILogger log)
{
Response.Headers.Add("Cache-Control", "no-cache");
return Ok($"Now: {DateTime.Now}");
}
}
public class Function3(IHttpContextAccessor httpContextAccessor) : HttpFunctionBase(httpContextAccessor)
{
[FunctionName("Function3")]
public IActionResult Run(
[HttpTrigger(AuthorizationLevel.Function, "get", Route = "route/{id}")]
HttpRequest req,
string id,
ILogger log)
{
return CreatedAtFunction("Function3", new { id = "kazuakix" }, null);
}
}
public class Function1(IHttpContextAccessor httpContextAccessor) : HttpFunctionBase(httpContextAccessor)
{
[FunctionName("Function1")]
public IActionResult Run(
[HttpTrigger(AuthorizationLevel.Anonymous, "get")] HttpRequest req,
ILogger log)
{
return File("sample.html");
}
}
public class Function1(IHttpContextAccessor httpContextAccessor) : HttpFunctionBase(httpContextAccessor)
{
[FunctionName("Function1")]
public IActionResult Run(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = "{*path}"})] HttpRequest req,
ILogger log)
{
return Proxy("https://example.com/{path}");
}
}
public class Function1(IHttpContextAccessor httpContextAccessor) : HttpFunctionBase(httpContextAccessor)
{
[FunctionName("Function1")]
public IActionResult Run(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = "{*path}"})] HttpRequest req,
ILogger log)
{
#if USE_REMOTE
return RemoteStaticApp("https://example.com", fallbackExclude: $"^/_nuxt/.*");
#else
return LocalStaticApp(fallbackPath: "404.html", fallbackExclude: $"^/_nuxt/.*");
#endif
}
}
This project is licensed under the MIT License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
Showing the top 2 popular GitHub repositories that depend on WebJobs.Extensions.HttpApi:
| Repository | Stars |
|---|---|
|
shibayan/appservice-acmebot
Automated ACME SSL/TLS certificates issuer for Azure App Service (Web Apps / Functions / Containers)
|
|
|
shibayan/containerapps-acmebot
Automated ACME SSL/TLS certificates issuer for Azure Container Apps (Custom domain / Custom DNS Suffix)
|
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.5 | 609 | 10/12/2025 |
| 3.0.4 | 169 | 10/11/2025 |
| 3.0.3 | 286 | 10/6/2025 |
| 3.0.2 | 222 | 10/6/2025 |
| 3.0.1 | 252 | 9/25/2025 |
| 3.0.0 | 1,318 | 11/18/2024 |
| 3.0.0-preview1 | 186 | 8/4/2024 |
| 2.1.0 | 10,119 | 8/18/2023 |
| 2.0.3 | 10,547 | 12/9/2021 |
| 2.0.2 | 628 | 12/8/2021 |
| 2.0.1 | 764 | 12/8/2021 |
| 2.0.0 | 5,337 | 11/13/2021 |
| 2.0.0-preview5 | 427 | 11/11/2021 |
| 2.0.0-preview4 | 422 | 11/10/2021 |
| 2.0.0-preview3 | 477 | 10/27/2021 |
| 2.0.0-preview2 | 378 | 10/20/2021 |
| 2.0.0-preview1 | 412 | 9/14/2021 |
| 1.1.2 | 1,400 | 10/20/2021 |
| 1.1.1 | 1,669 | 7/12/2021 |
| 1.1.0 | 7,694 | 5/24/2020 |