問題タブ [compojure-api]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
3 に答える
1086 参照

clojure - Clojure、Compojure-api: アクセス要求ヘッダー

リクエストエンドポイント認証を実装しようとしています。そのために、リクエスト ヘッダーから accessToken 値にアクセスしたいと考えています。

私のGETリクエストのエンドポイントは

CURL コマンド

HTTP コマンド

GET メソッドを実装するための私のコード

accessKey: 23423sfsdfsdfsfgリクエストヘッダーから取得したい。

値を取得して GET メソッドで使用する方法はありますか?

POSTMAN を使用してすべての API エンドポイントをテストしています。