UNPKG

pluto-http-client

Version:

HTTP client for NodeJS. Inspired in the Java JAX-RS spec so you can expect excellence, versatility and extensibility.

31 lines (30 loc) 1.36 kB
import { Equals } from "../framework/equals"; export declare class MediaType implements Equals { static readonly WILDCARD_TYPE: MediaType; static readonly ANY_TEXT_TYPE: MediaType; static readonly APPLICATION_XML_TYPE: MediaType; static readonly APPLICATION_ATOM_XML_TYPE: MediaType; static readonly APPLICATION_XHTML_XML_TYPE: MediaType; static readonly APPLICATION_SVG_XML_TYPE: MediaType; static readonly APPLICATION_JSON_TYPE: MediaType; static readonly APPLICATION_FORM_URLENCODED_TYPE: MediaType; static readonly MULTIPART_FORM_DATA_TYPE: MediaType; static readonly APPLICATION_OCTET_STREAM_TYPE: MediaType; static readonly TEXT_PLAIN_TYPE: MediaType; static readonly TEXT_XML_TYPE: MediaType; static readonly TEXT_HTML_TYPE: MediaType; static readonly SERVER_SENT_EVENTS_TYPE: MediaType; static readonly APPLICATION_JSON_PATCH_JSON_TYPE: MediaType; private readonly _type; private readonly _subtype; private readonly _parameters?; constructor(type: string, subtype: string, parameters?: Map<string, string>); equals(other: any): boolean; get type(): string; get subtype(): string; isWildcardType(): boolean; isWildcardSubtype(): boolean; isCompatible(other?: MediaType): boolean; toString(): string; static fromString(header?: string): MediaType; }