A

Admin • 832.27K Points
Coach

Q. How do you access a specific HTTP header?

Code:
$auth = $request->header()->get('Authorization');
  • (A) header()
  • (B) get_header()
  • (C) headers()
  • (D) fetch_header()
  • Correct Answer - Option(A)
  • Views: 6
  • Filed under category Trishul API
  • Hashtags:

Explanation by: Admin

header() returns the Header object used to access headers.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.