Skip to content

Microsoft.AspNetCore.Server.Kestrel

reference
1 min readUpdated

Kind: Service

Source: Pams/Web/Pams.Web/Pams.Web.csproj (line 1)

Part of: Pams

NuGet package dependency

Microsoft.AspNetCore.Server.Kestrel is a NuGet package dependency declared by Pams.Web.csproj. It hosts the ASP.NET Core application and accepts HTTP requests before passing them through the application pipeline.

Diagram

mermaid
sequenceDiagram
    participant Client
    participant Kestrel
    participant App as ASP.NET Core App
    participant Endpoint

    Client->>Kestrel: HTTP request
    Kestrel->>App: Forward request
    App->>Endpoint: Route and execute handler
    Endpoint-->>App: Response data
    App-->>Kestrel: HTTP response
    Kestrel-->>Client: Send response

Usage

ts
async function loadPamsData() {
  const response = await fetch("/api/pams");

  if (!response.ok) {
    throw new Error("Request failed");
  }

  return response.json();
}

loadPamsData().then((data) => {
  console.log(data);
});

AI Coding Instructions

  • Keep the Microsoft.AspNetCore.Server.Kestrel package reference in Pams.Web.csproj.
  • Configure Kestrel endpoints in the ASP.NET Core host configuration, not in browser code.
  • Route incoming requests through ASP.NET Core middleware and endpoint mappings.
  • Treat Kestrel as the server transport layer; TypeScript clients should call application HTTP endpoints.

Used by

1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Injected or called by (1)

  • Pams.WebPams/Web/Pams.Web/Pams.Web.csproj:1

Was this page helpful?

Download as PDF