# System.Web

**Kind:** Service

**Source:** `Pams/Core/Pams.Core/Pams.Core.csproj` (line 1)

**Part of:** [Pams](subsystem-pams)

NuGet package dependency

`System.Web` is a NuGet package dependency declared in `Pams.Core.csproj`. It provides legacy ASP.NET web APIs that Pams.Core can reference when interacting with HTTP requests, responses, sessions, or hosting context.

## Diagram

```mermaid
sequenceDiagram
    participant Client
    participant WebApp
    participant SystemWeb as System.Web
    participant PamsCore as Pams.Core

    Client->>WebApp: Send HTTP request
    WebApp->>SystemWeb: Access request context
    SystemWeb->>PamsCore: Provide web-related APIs
    PamsCore-->>WebApp: Return application result
    WebApp-->>Client: Send HTTP response
```

## Usage

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

  if (!response.ok) {
    throw new Error("Pams API request failed");
  }

  return response.json();
}

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

## AI Coding Instructions

- Treat `System.Web` as a legacy ASP.NET dependency referenced by `Pams.Core.csproj`.
- Keep web-context code isolated from domain logic where possible.
- Do not add `System.Web` APIs to code that must run outside the ASP.NET hosting environment.
- Check project target compatibility before changing or removing this package reference.

## 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.Core` — `Pams/Core/Pams.Core/Pams.Core.csproj`:1
