Get unlimited public & private packages + team-based management with npm Teams.Learn more »

@advanced-rest-client/host-rules-editor

3.0.1 • Public • Published

Published on NPM

Build Status

Published on webcomponents.org

<host-rules-editor>

An element to render host rules mapping.

Host rules

ARC's host rules allows to create internal mapping for the request engine to alter the connection URI keeping original Host header. This allows to tests virtual hosts configuration on the server.

When a request is made the rules are evaluated one after another to produce final request URL. This allows to define multiple rules that works on a previous evaluated URL. Lear more about host rules in ARC's wiki.

Usage

Installation

npm install --save @advanced-rest-client/host-rules-editor

In a LitElement

import { LitElement, html } from 'lit-element';
import '@advanced-rest-client/host-rules-editor/host-rules-editor.js';
import '@advanced-rest-client/arc-models/host-rules-model.js';
 
class SampleElement extends LitElement {
  render() {
    return html`
    <host-rules-model></host-rules-model>
    <host-rules-editor></host-rules-editor>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Development

git clone https://github.com/advanced-rest-client/host-rules-editor
cd host-rules-editor
npm install

Running the demo locally

npm start

Running the tests

npm test

API components

This components is a part of API components ecosystem

Install

npm i @advanced-rest-client/host-rules-editor

DownloadsWeekly Downloads

10

Version

3.0.1

License

Apache-2.0

Unpacked Size

82.9 kB

Total Files

22

Last publish

Collaborators

  • avatar