<gh_stars>10-100


class Request():
    """
    HTTP request.
    """

    def __init__(self, method, uri, version, headers, data):
        self._method = method
        self._uri = uri
        self._version = version
        self._headers = headers
        self._data = data

    def get_method(self):
        """
        Gets the request method.
        """
        return self._method

    def get_uri(self):
        """
        Gets the request URI.
        """
        return self._uri

    def get_version(self):
        """
        Gets the request version.
        """
        return self._version

    def get_headers(self):
        """
        Gets the request headers.
        """
        return self._headers

    def get_data(self):
        """
        Gets the raw post,put… data.
        """
        return self._data
class Request():
    """
    HTTP request.
    """

    def __init__(self, method, uri, version, headers, data):
        self._method = method
        self._uri = uri
        self._version = version
        self._headers = headers
        self._data = data

    def get_method(self):
        """
        Gets the request method.
        """
        return self._method

    def get_uri(self):
        """
        Gets the request URI.
        """
        return self._uri

    def get_version(self):
        """
        Gets the request version.
        """
        return self._version

    def get_headers(self):
        """
        Gets the request headers.
        """
        return self._headers

    def get_data(self):
        """
        Gets the raw post,put… data.
        """
        return self._data
HTTP request. Gets the request method. Gets the request URI. Gets the request version. Gets the request headers. Gets the raw post,put… data.