mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-20 21:12:38 +08:00
Add tests for RequestOptions and ClientRequestArgs
This commit is contained in:
@@ -499,6 +499,14 @@ namespace http_tests {
|
||||
request.setNoDelay(true);
|
||||
request.abort();
|
||||
}
|
||||
|
||||
const reqOptions: http.RequestOptions = {
|
||||
timeout: 30000
|
||||
};
|
||||
|
||||
const clientArgs: http.ClientRequestArgs = {
|
||||
timeout: 30000
|
||||
};
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
|
||||
@@ -935,6 +935,14 @@ namespace http_tests {
|
||||
request.setNoDelay(true);
|
||||
request.abort();
|
||||
}
|
||||
|
||||
const reqOptions: http.RequestOptions = {
|
||||
timeout: 30000
|
||||
};
|
||||
|
||||
const clientArgs: http.ClientRequestArgs = {
|
||||
timeout: 30000
|
||||
};
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
|
||||
@@ -1033,7 +1033,11 @@ namespace http_tests {
|
||||
request.abort();
|
||||
}
|
||||
|
||||
const options: http.ClientRequestArgs = {
|
||||
const reqOptions: http.RequestOptions = {
|
||||
timeout: 30000
|
||||
};
|
||||
|
||||
const clientArgs: http.ClientRequestArgs = {
|
||||
timeout: 30000
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user