{"action":"opened","issue":{"url":"https://api.github.com/repos/KimiNewt/pyshark/issues/77","labels_url":"https://api.github.com/repos/KimiNewt/pyshark/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/KimiNewt/pyshark/issues/77/comments","events_url":"https://api.github.com/repos/KimiNewt/pyshark/issues/77/events","html_url":"https://github.com/KimiNewt/pyshark/issues/77","id":71947078,"number":77,"title":"Can not get request method ","user":{"login":"Minzc","id":1132270,"avatar_url":"https://avatars.githubusercontent.com/u/1132270?v=3","gravatar_id":"","url":"https://api.github.com/users/Minzc","html_url":"https://github.com/Minzc","followers_url":"https://api.github.com/users/Minzc/followers","following_url":"https://api.github.com/users/Minzc/following{/other_user}","gists_url":"https://api.github.com/users/Minzc/gists{/gist_id}","starred_url":"https://api.github.com/users/Minzc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Minzc/subscriptions","organizations_url":"https://api.github.com/users/Minzc/orgs","repos_url":"https://api.github.com/users/Minzc/repos","events_url":"https://api.github.com/users/Minzc/events{/privacy}","received_events_url":"https://api.github.com/users/Minzc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-29T18:12:26Z","updated_at":"2015-04-29T18:12:26Z","closed_at":null,"body":"Hi,\r\n\r\nI have no idea about how to get 'request method' of a http package.\r\n\r\n```Python\r\n# pkg is a http package\r\nIn [70]: pkg.http\r\nOut[70]: <HTTP Layer>\r\n```\r\nWhen I try to access the 'request method' filed, it gives me an error\r\n```Python\r\nIn [71]: pkg.http.request.method\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n<ipython-input-71-46ad3cf73be3> in <module>()\r\n----> 1 pkg.http.request.method\r\n\r\n/usr/local/lib/python2.7/site-packages/pyshark-0.3.4-py2.7.egg/pyshark/packet/layer.pyc in __getattr__(self, item)\r\n    110\r\n    111     def __getattr__(self, item):\r\n--> 112         return getattr(self.main_field, item)\r\n    113\r\n    114\r\n\r\nAttributeError: 'LayerField' object has no attribute 'method'\r\n```\r\nThen I tried this way, it still does not work\r\n```Python\r\nIn [74]: pkg.http.http.request.method\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n<ipython-input-74-4c2a015dbed7> in <module>()\r\n----> 1 pkg.http.http.request.method\r\n\r\n/usr/local/lib/python2.7/site-packages/pyshark-0.3.4-py2.7.egg/pyshark/packet/layer.pyc in __getattr__(self, item)\r\n    140         val = self.get_field(item)\r\n    141         if val is None:\r\n--> 142             raise AttributeError()\r\n    143         if self.raw_mode:\r\n    144             return val.raw_value\r\n\r\nAttributeError:\r\n```\r\nI have to use the following way to access that field. It works but I don't think it's the correct way.\r\n```Python\r\nIn [73]: getattr(pkg.http, 'http.request.method')\r\nOut[73]: 'GET'\r\n```\r\n\r\nCould you tell me how to access that field?\r\n\r\nThanks"}}