Skip to content

SAIF.Web.API API reference

This page lists all public types exposed by SAIF.Web.API. All five types live in the single namespace SAIF.Web.API. Each type links to its full API reference page.

Types

Type Kind Namespace Purpose
ApiResponseHandler Class SAIF.Web.API DelegatingHandler that post-processes every response passing through the pipeline: normalizes Web API errors into a fixed ErrorResponse contract, assigns a correlation ID, builds a Splunk deep-link, logs/traces the exchange, and stamps a Server-Name header.
ExceptionHandler Class (static) SAIF.Web.API Maps SAIF.API.Exceptions.* exception types to fixed HTTP status codes via catch-clause dispatch.
HttpRequestExtensions Class (static, extension methods) SAIF.Web.API Provides a non-throwing helper to read the first value of a named request header.
RequireSSLAttribute Class (action filter) SAIF.Web.API Action filter that redirects non-HTTPS requests to HTTPS, with a configurable local-request exemption.
SaifAuthorizeAttribute Class (authorization filter) SAIF.Web.API Sealed AuthorizeAttribute subclass that delegates per-role authorization decisions to a remote ISecurityApiClient.

Sources

  • src/SAIF.Web.API/ApiResponseHandler.cs
  • src/SAIF.Web.API/ExceptionHandler.cs
  • src/SAIF.Web.API/HttpRequestExtensions.cs
  • src/SAIF.Web.API/RequireSSLAttribute.cs
  • src/SAIF.Web.API/SaifAuthorizeAttribute.cs
  • src/SAIF.Web.API/SAIF.Web.API.csproj