You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
845 B
35 lines
845 B
import query = require('./query'); |
|
import types = require('./types'); |
|
import toStr = require('./toStr'); |
|
|
|
declare namespace Url { |
|
interface IUrl { |
|
protocol: string; |
|
auth: string; |
|
hostname: string; |
|
hash: string; |
|
query: any; |
|
port: string; |
|
pathname: string; |
|
slashes: boolean; |
|
} |
|
} |
|
declare class Url { |
|
protocol: string; |
|
auth: string; |
|
hostname: string; |
|
hash: string; |
|
query: any; |
|
port: string; |
|
pathname: string; |
|
slashes: boolean; |
|
constructor(url?: string); |
|
setQuery(name: string, val: string | number): Url; |
|
setQuery(query: types.PlainObj<string | number>): Url; |
|
rmQuery(name: string | string[]): Url; |
|
toString(): string; |
|
static parse(url: string): Url.IUrl; |
|
static stringify(object: Url.IUrl): string; |
|
} |
|
|
|
export = Url;
|
|
|