mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-26 10:56:19 +08:00
Fixes names of http.Request and http.Response
This commit is contained in:
8
selenium-webdriver/http.d.ts
vendored
8
selenium-webdriver/http.d.ts
vendored
@@ -13,7 +13,7 @@ export function headersToString(headers: any): string;
|
||||
* responsibility to build the full URL for the final request.
|
||||
* @final
|
||||
*/
|
||||
export class HttpRequest {
|
||||
export class Request {
|
||||
/**
|
||||
* @param {string} method The HTTP method to use for the request.
|
||||
* @param {string} path The path on the server to send the request to.
|
||||
@@ -29,7 +29,7 @@ export class HttpRequest {
|
||||
* Represents a HTTP response message.
|
||||
* @final
|
||||
*/
|
||||
export class HttpResponse {
|
||||
export class Response {
|
||||
/**
|
||||
* @param {number} status The response code.
|
||||
* @param {!Object<string>} headers The response headers. All header names
|
||||
@@ -70,7 +70,7 @@ export class HttpClient {
|
||||
* @return {!promise.Promise<HttpResponse>} A promise that will be fulfilled
|
||||
* with the server's response.
|
||||
*/
|
||||
send(httpRequest: HttpRequest): webdriver.promise.Promise<HttpResponse>;
|
||||
send(httpRequest: Request): webdriver.promise.Promise<Response>;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -139,7 +139,7 @@ export function tryParse(str: string): any;
|
||||
* @return {{value: ?}} The parsed response.
|
||||
* @throws {WebDriverError} If the HTTP response is an error.
|
||||
*/
|
||||
export function parseHttpResponse(httpResponse: HttpResponse, w3c: boolean): any;
|
||||
export function parseHttpResponse(httpResponse: Response, w3c: boolean): any;
|
||||
|
||||
/**
|
||||
* Builds a fully qualified path using the given set of command parameters. Each
|
||||
|
||||
Reference in New Issue
Block a user