Http Class

Use the Http class to initiate an HTTP request and response.

System

The following are methods for Http. All are instance methods.

  • send(request)

    Sends an HttpRequest and returns the response.

  • toString()

    Returns a string that displays and identifies the object’s properties.

Sends an HttpRequest and returns the response.

public HttpResponse send(HttpRequest request)

Type: System.HttpResponse

Returns a string that displays and identifies the object’s properties.

public String toString()

Type: String