$auth = $request->header()->get('Authorization');
Explanation: header() returns the Header object used to access headers.
$auth = $request->header()->get('Authorization');
Explanation: header() returns the Header object used to access headers.
Explanation: body() returns the RequestBody object.
$userId = $request->____()->get('user_id');
Explanation: session() returns the Session object to manage session data.
$token = $request->____()->get('session_token');
Explanation: cookie() returns the Cookie object for accessing cookies.
$id = $request->____()->get('id');
Explanation: path() returns the PathVariable object.
$url = $request->____();
Explanation: get_url() returns the current request URL.
$ip = $request->____();
Explanation: get_ip() returns the client's IP.
Explanation: update() merges data from another Request object.
Explanation: set_body() assigns a RequestBody object.
Explanation: It throws NullPointerException if the body is null.