http-client
http-client copied to clipboard
A lightweight HTTP client optimized for use with actions, TypeScript with generics and async await.
This is minor refactor to improve the code. I hope you won't ask me to make a GitHub issue for every minor refactor.
The `allowRetries` option currently only applies `OPTIONS`, `GET`, `DELETE` and `HEAD` (see [`RetryableHttpVerbs`](https://github.com/actions/http-client/blob/master/index.ts#L172) since those operations are idempotent by default. This is a good default and avoids any unintended side...
The authentication handlers in `auth.ts` all define `handleAuthentication` methods that look like this: ```typescript handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs): Promise { return null; } ``` However, this is not strictly...
Typescript has many different [compiler options](https://www.typescriptlang.org/docs/handbook/compiler-options.html), and the `--strict` option is very useful for ensuring correctness. Without it, type errors like #21 often creep in. We should enable `strict` mode...
there's an option to deserialize dates. add a test to cover that option