Class $k.HttpConnection

A single connection to a HTTP server.

Class Summary
Constructor Attributes Constructor Name and Description
 

Method Summary

Class Detail

$k.HttpConnection()

Method Detail

  • {$k.HttpResponse} getResponse(request)
    Sends the requests and returns a reponse

    Only HTTP(S) requests are allowed. If the URI uses another protocol (e.g. 'file'), then an URIError is raised.

    It is possible to restrict the domains that can be accessed by adding the following to the configuration file of a client (bridge etc.):

    
    [script]
    allowedOutgoingDomains=*.intelligent-views.com,ivinternal:8080
    
    Parameters:
    {$k.HttpRequest} request
    Throws:
    {$k.exception.HttpError}
    If no response was received (timeout etc.)
    {URIError}
    If the URI is not allowed
    Returns:
    {$k.HttpResponse} The response for the request