parameters: (request)
return_statement: return HttpResponse({})
docstring: Get the available threat types to use.
  
      :param request: Django request.
      :type request: :class:`django.http.HttpRequest`
      :returns: :class:`django.http.HttpResponse`
docstring_summary: Get the available threat types to use.
docstring_tokens: Get the available threat types to use .
function: def get_available_threat_types(request):
      """
      Get the available threat types to use.
  
      :param request: Django request.
      :type request: :class:`django.http.HttpRequest`
      :returns: :class:`django.http.HttpResponse`
      """
  
      if request.method == "POST" and request.is_ajax():
          return HttpResponse(
              json.dumps(IndicatorThreatTypes.values(sort=True),
                         default=json_handler),
              content_type='application/json'
          )
      return HttpResponse({})
function_tokens: def get_available_threat_types ( request ) : if request . method == "POST" and request . is_ajax ( ) : return HttpResponse ( json . dumps ( IndicatorThreatTypes . values ( sort = True ) , default = json_handler ) , content_type = 'application/json' ) return HttpResponse ( { } )