Miss any of our Open RFC calls?Watch the recordings here! »

@advanced-rest-client/response-raw-viewer

3.0.2 • Public • Published

Published on NPM

Build Status

<response-raw-viewer>

An element to display the raw HTTP response data without syntax highlighting.

<response-raw-viewer responsetext="Some response"></response-raw-viewer>

Usage

Installation

npm install --save @advanced-rest-client/response-raw-viewer

In an html file

<html>
  <head>
    <script type="module">
      import '@advanced-rest-client/response-raw-viewer/response-raw-viewer.js';
    </script> 
  </head>
  <body>
    <response-raw-viewer responsetext="Some response"></response-raw-viewer>
  </body>
</html>

In a LitElement

import { LitElement, html } from 'lit-element';
import '@advanced-rest-client/response-raw-viewer/response-raw-viewer.js';
 
class SampleElement extends PolymerElement {
  render() {
    return html`
    <response-raw-viewer
      .responseText="${this.response}"></response-raw-viewer>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Development

git clone https://github.com/advanced-rest-client/response-raw-viewer
cd response-raw-viewer
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/response-raw-viewer

DownloadsWeekly Downloads

148

Version

3.0.2

License

Apache-2.0

Unpacked Size

47 kB

Total Files

6

Last publish

Collaborators

  • avatar
  • avatar
  • avatar