Fixes names of http.Request and http.Response

This commit is contained in:
Simon Gellis
2017-02-16 23:05:00 -05:00
parent b435044b60
commit 710bd64dc1

View File

@@ -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