add the regex named pattern method and http_version for future use

add the regex named pattern method and http_version for future use