This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* An [HttpRequestInterceptor] that signs requests using any AWS [Aws4Signer] and [AwsCredentialsProvider]. | |
* | |
* NOTE: Ported to kotlin and v2 SDK from https://github.com/awslabs/aws-request-signing-apache-interceptor/ | |
*/ | |
class AwsRequestSigningInterceptor( | |
private val region: Region, | |
private val service: String, | |
private val signer: Aws4Signer, | |
private val awsCredentialsProvider: AwsCredentialsProvider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
A simple LD_PRELOAD hack to let you specify the source address | |
for all outbound connections or if you want to limit a process | |
to only listening on one IP | |
Modified to work on Mac OSX | |
Copyright (C) 2005 Robert J. McKay <robert@mckay.com> | |
License: You can do whatever you want with it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module 'vm' { | |
import * as Buffer from 'buffer' | |
import TypedArray = NodeJS.TypedArray | |
type EvaluateOptions = { | |
timeout: number | |
breakOnSigint: boolean | |
} | |
export class Module { |