# Path: pyoauth/constants.py
# HEADER_CONTENT_TYPE_CAPS = "Content-Type"
# 
# SYMBOL_SEMICOLON = b(";")
# 
# SYMBOL_EQUAL = b("=")


from mom.codec.text import ascii_encode
from mom.builtins import b
from pyoauth.constants import HEADER_CONTENT_TYPE_CAPS, SYMBOL_SEMICOLON, SYMBOL_EQUAL
        :returns:
            Value of the header.
        """
        if name in self.headers:
            return self.headers[name]
        elif name.lower() in self.headers:
            return self.headers[name.lower()]
        else:
            header_lowercased = name.lower()
            for k, v in self.headers.items():
                if k.lower() == header_lowercased:
                    return v
            return None

    @property
    def content_type(self):
        """Determines the content type of the response."""
        return self.get_header(HEADER_CONTENT_TYPE_CAPS).split(SYMBOL_SEMICOLON, 1)[0]

    def is_body_form_urlencoded(self):
        """Determines whether the response has content type form urlencoded."""
        return self.content_type == CONTENT_TYPE_FORM_URLENCODED

    @property
    def content_type_encoding(self):
        """Determines the content type of the response."""
        header = self.get_header(HEADER_CONTENT_TYPE_CAPS)
        if SYMBOL_SEMICOLON in header:
            content_type, encoding = header.split(SYMBOL_SEMICOLON, 1)
            if encoding:

# Path: pyoauth/constants.py
# HEADER_CONTENT_TYPE_CAPS = "Content-Type"
# 
# SYMBOL_SEMICOLON = b(";")
# 
# SYMBOL_EQUAL = b("=")


# Path: pyoauth/http.py
from mom.codec.text import ascii_encode
from mom.builtins import b
from pyoauth.constants import HEADER_CONTENT_TYPE_CAPS, SYMBOL_SEMICOLON, SYMBOL_EQUAL

        :returns:
            Value of the header.
        """
        if name in self.headers:
            return self.headers[name]
        elif name.lower() in self.headers:
            return self.headers[name.lower()]
        else:
            header_lowercased = name.lower()
            for k, v in self.headers.items():
                if k.lower() == header_lowercased:
                    return v
            return None

    @property
    def content_type(self):
        """Determines the content type of the response."""
        return self.get_header(HEADER_CONTENT_TYPE_CAPS).split(SYMBOL_SEMICOLON, 1)[0]

    def is_body_form_urlencoded(self):
        """Determines whether the response has content type form urlencoded."""
        return self.content_type == CONTENT_TYPE_FORM_URLENCODED

    @property
    def content_type_encoding(self):
        """Determines the content type of the response."""
        header = self.get_header(HEADER_CONTENT_TYPE_CAPS)
        if SYMBOL_SEMICOLON in header:
            content_type, encoding = header.split(SYMBOL_SEMICOLON, 1)
            if encoding:

                return encoding.strip().split(SYMBOL_EQUAL, 1)[1]