ngx-http
Language

Angular Transport Package

ngx-http

Focused Angular transport primitives for shared API access and signal-driven connectivity state.

SSR-safe defaults, standalone-first bootstrapping, and one package dedicated to `HttpService` and `NetworkService`.

landing.ts

Project Overview

Package

ngx-http

Focused Angular package for API calls and connectivity monitoring, with browser-only behavior guarded for SSR.

License

MIT

Published as a public package and designed for reuse across multiple apps.

Installation

Install the package

$ npm i --save ngx-http

Usage

Bootstrap with provideNgxHttp()

import { provideNgxHttp } from 'ngx-http';

export const appConfig = {
  providers: [provideNgxHttp()],
};

Configuration

Centralize app-level defaults

Configure HTTP defaults and connectivity probing in one place instead of scattering API base URLs or endpoint checks across components.

import { provideNgxHttp } from 'ngx-http';

export const appConfig = {
  providers: [
    provideNgxHttp({
      http: { url: 'https://api.example.com' },
      network: {
        endpoints: ['https://api.example.com/ping'],
        goodLatencyMs: 250,
      },
    }),
  ],
};

Features

What ngx-http includes

Bootstrap and configuration

Standalone-first setup centered on provideNgxHttp() for transport defaults.

provideNgxHttp() | http / network config | HttpClient provisioning with fetch + DI interceptors

Transport services

Focused runtime features for API access and connectivity state.

HttpService | NetworkService | Shared config token and typed interfaces

Reference

Documented feature pages

The detailed pages below cover the main service-backed features and their public API surface.