no versions found for ApplicationFrameworkReferences / Utility/auth/digestauthkey_toAuthorizationField / en

DigestAuthKey: toAuthorizationField()

Authorization ヘッダのフィールドにセットする文字列を生成して返します。

構文

digestAuthKey.toAuthorizationField(request) => Promise<(string | null)>

引数

  • request: { method, url }

    認証を付与するリクエストのオブジェクトです。

    • method: string

      リクエストのメソッドです。

    • url: string

      リクエストの URL です。

返値: Promise<(string | null)>

Authorization ヘッダのフィールドが生成できればその文字列、できなければ null を返すプロミスです。