symfony dump request headers and body code example Example: symfony dump request headers $headers = $request->headers->all();