httpUtils
Index
Enumerations
Method
DELETE
GET
POST
PUT
Type Aliases
Body
Options
Type declaration
configuration: Configuration
optionalcustomErrorMessage?: (err: RequestError, configuration: Configuration) => string | null
Parameters
err: RequestError
configuration: Configuration
Returns string | null
optionalheaders?: {}
[headerName string]: string | undefined
optionaljsonRequest?: boolean
optionaljsonResponse?: boolean
optionalmethod?: Method
optionalwrapNetworkRequest?: (executor: () => Promise<Response>, extra: WrapNetworkRequestInfo) => Promise<() => Promise<Response>>
Parameters
executor: () => Promise<Response>
extra: WrapNetworkRequestInfo
Returns Promise<() => Promise<Response>>
Response
Type declaration
body: any
headers: IncomingHttpHeaders
statusCode: number
optionalstatusMessage?: string
Functions
del
Parameters
target: string
__namedParameters: Options
Returns Promise<Buffer>
get
Parameters
target: string
__namedParameters: Options
Returns Promise<any>
getNetworkSettings
Parameters
target: string | URL
opts: { configuration: Configuration }
Returns { enableNetwork: null | boolean; httpProxy: null | string; httpsCaFilePath: null | PortablePath; httpsCertFilePath: null | PortablePath; httpsKeyFilePath: null | PortablePath; httpsProxy: null | string }
enableNetwork: null | boolean
httpProxy: null | string
httpsCaFilePath: null | PortablePath
httpsCertFilePath: null | PortablePath
httpsKeyFilePath: null | PortablePath
httpsProxy: null | string
Searches through networkSettings and returns the most specific match