UNPKG

@advanced-rest-client/arc-headers

Version:

A module that contains UI and logic for handle HTTP headers in an HTTP request and request editors.

52 lines (43 loc) 1.18 kB
import { LitElement, CSSResult, TemplateResult } from 'lit-element'; import { FormTypes } from '@advanced-rest-client/arc-types'; import { listValue, headersValue, processHeaders, autoLink, listItemTemplate, } from './internals.js'; export const linkRegexp: RegExp; /** * An element that renders a list of headers. * @deprecated This component is deprecated. Use `@advanced-rest-client/app` instead. */ export declare class HeadersListElement extends LitElement { static readonly styles: CSSResult; /** * A HTTP headers to render. * @attribute */ headers: string; [headersValue]: string; /** * Tests whether there's anything to render. */ readonly hasHeaders: boolean; [listValue]: FormTypes.FormItem[]; /** * @param value Processes the headers value. */ [processHeaders](value: string): void; /** * Searches for links in the string and wraps it in a HTML. * @param input The header value * @returns Parsed header */ [autoLink](input: string): string|TemplateResult; render(): TemplateResult; /** * Renders a header list item */ [listItemTemplate](header: FormTypes.FormItem): TemplateResult; }