Skip to content

Configuration

Hassan F edited this page Feb 6, 2021 · 2 revisions

Constructor Options:

ARH provides with several optional argument, which is introduced here:

  • baseUrl: This option set a base URL for all other requests
  • fixEndOfUrl: This option try to handle missing or extra / at the end of base URL route, so if someone who doesn't know your request URL tries to add a new URL to your config files, it will handle that.
  • options: This take an instance of RestHandlerInitializerOptions which provides with:
    • FixEndOfUrl: This option try to handle missing or extra / at the end of base URL route, so if someone who doesn't know your request URL tries to add a new URL to your config files, it will handle that.
    • Timeout: Let you set a timeout that overrides HttpClient default timeout setting

Request Types

Clone this wiki locally