@chubbyjs/psr-http-message
Version:
Common Http-message Interface (PHP FIG PSR-7).
20 lines (19 loc) • 571 B
TypeScript
interface UriInterface {
getSchema(): string;
getAuthority(): string;
getUserInfo(): string;
getHost(): string;
getPort(): number | undefined;
getPath(): string;
getQuery(): string;
getFragment(): string;
withScheme(scheme: string): this;
withUserInfo(user: string, password?: string): this;
withHost(scheme: string): this;
withPort(port?: number): this;
withPath(scheme: string): this;
withQuery(scheme: string): this;
withFragment(scheme: string): this;
toString(): string;
}
export default UriInterface;