Deprecation notice
This component is deprecated. Use @advanced-rest-client/arc-response
instead.
<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