Skip to content

Commit

Permalink
Rename Proxy -> HttpProxy, add copyright header
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Richards <[email protected]>
  • Loading branch information
t-richards committed Sep 4, 2020
1 parent c0121d9 commit e3e98cf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
.idea/

node_modules/
package-lock.json
19 changes: 17 additions & 2 deletions cometd-nodejs-client.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
export interface Proxy {
/*
* Copyright (c) 2017-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export interface HttpProxy {
uri?: string;
includes?: string[];
excludes?: string[];
}

export interface Options {
logLevel?: "debug" | "info";
httpProxy?: Proxy;
httpProxy?: HttpProxy;
}

export function adapt(options?: Options): void;

0 comments on commit e3e98cf

Please sign in to comment.