Function HTTPRequest.request

Creates request on the underlying HTTPClient. If there is no configuration errors, it tries to connect using HTTPClient.connectToHost and passes parameters onto HTTPClient.request. Returns constant OK if request is successfully created. (Does not imply that the server has responded), constant ERR_UNCONFIGURED if not in the tree, constant ERR_BUSY if still processing previous request, constant ERR_INVALID_PARAMETER if given string is not a valid URL format, or constant ERR_CANT_CONNECT if not using thread and the HTTPClient cannot connect to host.

godot.core.defs.GodotError request (
  const(String) url,
  const(PoolArray!(godot.core.string.String)) custom_headers = PoolArray(godot_pool_string_array(0LU)),
  const(bool) ssl_validate_domain = true,
  const(long) method = 0L,
  const(String) request_data = GodotStringLiteral().str()
) nothrow @nogc;