mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-08-04 21:39:04 +00:00
feat: refact certMgr and httpsServerMgr into TS
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/// <reference path="../../typings/index.d.ts" />
|
||||
|
||||
declare interface ErrorResponse {
|
||||
declare interface IErrorResponse {
|
||||
statusCode: number;
|
||||
header: OneLevelObjectType;
|
||||
body: string;
|
||||
@@ -201,7 +201,7 @@ function fetchRemoteResponse(
|
||||
/*
|
||||
* get error response for exception scenarios
|
||||
*/
|
||||
function getErrorResponse(error: NodeJS.ErrnoException, fullUrl: string): ErrorResponse {
|
||||
function getErrorResponse(error: NodeJS.ErrnoException, fullUrl: string): IErrorResponse {
|
||||
// default error response
|
||||
const errorResponse = {
|
||||
statusCode: 500,
|
||||
|
||||
Reference in New Issue
Block a user