Skip to content

Commit

Permalink
Adds method for setting an accept language header
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Paul committed Aug 27, 2019
1 parent 1150869 commit ea90179
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ export class OpenApi {
return this.form;
}

public locale(locale: string): this {
this.client.defaults.headers.common['Accept-Language'] = locale;

return this;
}

public lists(): WaitListResource {
return this.list;
}
Expand Down

0 comments on commit ea90179

Please sign in to comment.