Skip to content

Latest commit

 

History

History
56 lines (28 loc) · 1.15 KB

http.http.md

File metadata and controls

56 lines (28 loc) · 1.15 KB

Home > @cerbos/http > HTTP

HTTP class

A client for interacting with the Cerbos policy decision point server over HTTP.

Signature:

export declare class HTTP extends Client 

Extends: Client

Remarks

This is primarily intended for use in browsers, and requires fetch to be available globally. If you're targeting old browsers, you'll need to apply a polyfill.

You can use it in server-side Node.js applications, but the gRPC client might be more appropriate.

See the parent class for available methods.

Constructors

Constructor

Modifiers

Description

(constructor)(baseUrl, options)

Create a client for interacting with the Cerbos policy decision point (PDP) server over HTTP.