Ballerina API Documentation

Functions of ballerina.net.http package

public function <Request req> addHeader(string headerName, string headerValue)

Adds the specified key/value pair as an HTTP header to the request

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

Parameters:

Parameter NameData TypeDescription
headerNamestringThe header name
headerValuestringThe header value

public function <Request req> createSessionIfAbsent() (Session)

Gets the Session struct for a valid session cookie from the request. Otherwise creates a new Session struct.

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

Return Parameters:

Return VariableData TypeDescription
SessionHTTP Session struct

public function <Request req> expects100Continue() (boolean)

Checks whether the client expects a 100-continue response.

Receiver:

Receiver NameData TypeDescription
reqRequestA request struct

Return Parameters:

Return VariableData TypeDescription
booleanReturns true if the client expects a 100-continue response. If not, returns false.

public function <Request req> getBinaryPayload() (blob)

Gets the request payload in blob format

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

Return Parameters:

Return VariableData TypeDescription
blobThe blob representation of the message payload

public function <Request req> getContentLength() (int)

Gets the Content-Length header from the request

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

Return Parameters:

Return VariableData TypeDescription
intlength of the message

public function <Request req> getFormParams() (map)

Gets the form parameters from the HTTP request as a map

Receiver:

Receiver NameData TypeDescription
reqRequestThe request message

Return Parameters:

Return VariableData TypeDescription
mapThe map of form params

public function <Request req> getHeader(string headerName) (HeaderValue)

Gets a transport header from the request

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

Parameters:

Parameter NameData TypeDescription
headerNamestringThe header name

Return Parameters:

Return VariableData TypeDescription
HeaderValueThe first header value struct for the provided header name. Returns null if the header does not exist.

public function <Request req> getHeaders(string headerName) (HeaderValue[])

Gets transport headers from the request

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

Parameters:

Parameter NameData TypeDescription
headerNamestringThe header name

Return Parameters:

Return VariableData TypeDescription
HeaderValue[]The header values struct array for a given header name

public function <Request req> getJsonPayload() (json)

Gets the request payload in JSON format

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

Return Parameters:

Return VariableData TypeDescription
jsonThe JSON reresentation of the message payload

public function <Request req> getMethod() (string)

Gets the HTTP method from the request

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

Return Parameters:

Return VariableData TypeDescription
stringThe HTTP request method associated with the request

public function <Request req> getProperty(string propertyName) (string)

Retrieves the named property from the request

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

Parameters:

Parameter NameData TypeDescription
propertyNamestringThe name of the property

Return Parameters:

Return VariableData TypeDescription
stringThe property value

public function <Request req> getQueryParams() (map)

Gets the query parameters from the HTTP request as a map

Receiver:

Receiver NameData TypeDescription
reqRequestThe request message

Return Parameters:

Return VariableData TypeDescription
mapThe map of query params

public function <Request req> getRequestURL() (string)

Gets the request URL from the request

Receiver:

Receiver NameData TypeDescription
reqRequestThe request message

Return Parameters:

Return VariableData TypeDescription
stringThe request URL value

public function <Request req> getSession() (Session)

Gets the Session struct from the request if it is present

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

Return Parameters:

Return VariableData TypeDescription
SessionThe HTTP Session struct assoicated with the request

public function <Request req> getStringPayload() (string)

Gets the request payload as a string

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

Return Parameters:

Return VariableData TypeDescription
stringThe string representation of the message payload

public function <Request req> getXmlPayload() (xml)

Gets the request payload in XML format

Receiver:

Receiver NameData TypeDescription
reqRequestThe request message

Return Parameters:

Return VariableData TypeDescription
xmlThe XML representation of the message payload

public function <Request req> removeAllHeaders()

Removes all transport headers from the message

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

public function <Request req> removeHeader(string key)

Removes a transport header from the request

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

Parameters:

Parameter NameData TypeDescription
keystringThe header name

public function <Request req> setBinaryPayload(blob payload)

Sets a blob as the request payload

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

Parameters:

Parameter NameData TypeDescription
payloadblobThe blob representation of the message payload

public function <Request req> setHeader(string headerName, string headerValue)

Sets the value of a transport header

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

Parameters:

Parameter NameData TypeDescription
headerNamestringThe header name
headerValuestringThe header value

public function <Request req> setJsonPayload(json payload)

Sets a JSON as the request payload

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

Parameters:

Parameter NameData TypeDescription
payloadjsonThe JSON payload to be

public function <Request req> setProperty(string propertyName, string propertyValue)

Sets a request property

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

Parameters:

Parameter NameData TypeDescription
propertyNamestringThe name of the property
propertyValuestringThe value of the property

public function <Request req> setStringPayload(string payload)

Sets a string as the request payload

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

Parameters:

Parameter NameData TypeDescription
payloadstringThe payload to be set to the request as a string

public function <Request req> setXmlPayload(xml payload)

Sets an XML as the payload

Receiver:

Receiver NameData TypeDescription
reqRequestA request message

Parameters:

Parameter NameData TypeDescription
payloadxmlThe XML payload object

public function <Response res> addHeader(string headerName, string headerValue)

Adds the specified key/value pair as an HTTP header to the response

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Parameters:

Parameter NameData TypeDescription
headerNamestringThe header name
headerValuestringThe header value

public function <Response res> forward(Response resp) (HttpConnectorError)

Forwards client service response directly to the caller.

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Parameters:

Parameter NameData TypeDescription
respResponseThe new instance of the response message

Return Parameters:

Return VariableData TypeDescription
HttpConnectorErrorError occured during HTTP server connector forward

public function <Response res> getBinaryPayload() (blob)

Gets the response payload in blob format

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Return Parameters:

Return VariableData TypeDescription
blobThe blob representation of the message payload

public function <Response res> getContentLength() (int)

Gets the length of the response payload, as given in the Content-Length header of the response

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Return Parameters:

Return VariableData TypeDescription
intLength of the response payload

public function <Response res> getHeader(string headerName) (HeaderValue)

Gets the named HTTP header from the response

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Parameters:

Parameter NameData TypeDescription
headerNamestringThe header name

Return Parameters:

Return VariableData TypeDescription
HeaderValueThe first header value struct for the provided header name. Returns null if the header does not exist.

public function <Response res> getHeaders(string headerName) (HeaderValue[])

Gets the HTTP headers from the response

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Parameters:

Parameter NameData TypeDescription
headerNamestringThe header name

Return Parameters:

Return VariableData TypeDescription
HeaderValue[]The header values struct array for a given header name

public function <Response res> getJsonPayload() (json)

Gets the response payload in JSON format

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Return Parameters:

Return VariableData TypeDescription
jsonThe JSON reresentation of the message payload

public function <Response res> getProperty(string propertyName) (string)

Retrieve a response property

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Parameters:

Parameter NameData TypeDescription
propertyNamestringThe name of the property

Return Parameters:

Return VariableData TypeDescription
stringThe property value

public function <Response res> getStatusCode() (int)

Gets the HTTP status code from the response

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Return Parameters:

Return VariableData TypeDescription
intHTTP status code of the response

public function <Response res> getStringPayload() (string)

Gets the response payload as a string

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Return Parameters:

Return VariableData TypeDescription
stringThe string representation of the message payload

public function <Response res> getXmlPayload() (xml)

Gets the response payload in XML format

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Return Parameters:

Return VariableData TypeDescription
xmlThe XML representation of the message payload

public function <Response res> removeAllHeaders()

Removes all transport headers from the response

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

public function <Response res> removeHeader(string key)

Removes a transport header from the response

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Parameters:

Parameter NameData TypeDescription
keystringThe header name

public function <Response res> send() (HttpConnectorError)

Sends outbound response to the caller.

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Return Parameters:

Return VariableData TypeDescription
HttpConnectorErrorError occured during HTTP server connector send

public function <Response res> send100Continue() (HttpConnectorError)

Sends a 100-continue response to the client.

Receiver:

Receiver NameData TypeDescription
resResponseA response struct

Return Parameters:

Return VariableData TypeDescription
HttpConnectorErrorReturns an HttpConnectorError if there was any issue in sending the response.

public function <Response res> setBinaryPayload(blob payload)

Sets a blob as the response payload

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Parameters:

Parameter NameData TypeDescription
payloadblobThe blob representation of the message payload

public function <Response res> setHeader(string key, string value)

Sets the value of a transport header

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Parameters:

Parameter NameData TypeDescription
keystringThe header name
valuestringThe header value

public function <Response res> setJsonPayload(json payload)

Sets a JSON as the response payload

Receiver:

Receiver NameData TypeDescription
resResponsereq: The response message

Parameters:

Parameter NameData TypeDescription
payloadjsonThe JSON payload object

public function <Response res> setProperty(string propertyName, string propertyValue)

Sets a response property

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Parameters:

Parameter NameData TypeDescription
propertyNamestringThe name of the property
propertyValuestringThe value of the property

public function <Response res> setReasonPhrase(string reasonPhrase)

Sets a custom HTTP Reason phrase

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Parameters:

Parameter NameData TypeDescription
reasonPhrasestringReason phrase value

public function <Response res> setStatusCode(int statusCode)

Sets the HTTP status code of the response

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Parameters:

Parameter NameData TypeDescription
statusCodeintHTTP status code

public function <Response res> setStringPayload(string payload)

Sets a string as the response payload

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Parameters:

Parameter NameData TypeDescription
payloadstringThe string payload to be set

public function <Response res> setXmlPayload(xml payload)

Sets an XML as the response payload

Receiver:

Receiver NameData TypeDescription
resResponseThe response message

Parameters:

Parameter NameData TypeDescription
payloadxmlThe XML payload object

public function <Session session> getAttribute(string attributeKey) (any)

Gets the named session attribute

Receiver:

Receiver NameData TypeDescription
sessionSessionA Session struct

Parameters:

Parameter NameData TypeDescription
attributeKeystringHTTP session attribute key

Return Parameters:

Return VariableData TypeDescription
anyHTTP session attribute value

public function <Session session> getAttributeNames() (string[])

Gets the session attribute names

Receiver:

Receiver NameData TypeDescription
sessionSessionA Session struct

Return Parameters:

Return VariableData TypeDescription
string[]Session attribute names array

public function <Session session> getAttributes() (map)

Gets the session attribute key value pairs as a map

Receiver:

Receiver NameData TypeDescription
sessionSessionA session struct

Return Parameters:

Return VariableData TypeDescription
mapThe map of session attributes key value pairs

public function <Session session> getCreationTime() (int)

Gets the session creation time

Receiver:

Receiver NameData TypeDescription
sessionSessionA Session struct

Return Parameters:

Return VariableData TypeDescription
intSession creation time

public function <Session session> getId() (string)

Gets the session cookie ID

Receiver:

Receiver NameData TypeDescription
sessionSessionA Session struct

Return Parameters:

Return VariableData TypeDescription
stringSession ID

public function <Session session> getLastAccessedTime() (int)

Gets the last time the sessions was accessed

Receiver:

Receiver NameData TypeDescription
sessionSessionA Session struct

Return Parameters:

Return VariableData TypeDescription
intLast accessed time of the session

public function <Session session> getMaxInactiveInterval() (int)

Gets maximum inactive interval for the session. The session expires after this time period.

Receiver:

Receiver NameData TypeDescription
sessionSessionA Session struct

Return Parameters:

Return VariableData TypeDescription
intSession max inactive interval

public function <Session session> invalidate()

Invalidates the session and it will no longer be accessible from the request

Receiver:

Receiver NameData TypeDescription
sessionSessionA Session struct

public function <Session session> isNew() (boolean)

Checks whether the given session is a newly created session or an existing session

Receiver:

Receiver NameData TypeDescription
sessionSessionA Session struct

Return Parameters:

Return VariableData TypeDescription
booleanIndicates if the session is a newly created session or not

public function <Session session> removeAttribute(string attributeKey)

Remove the named session attribute

Receiver:

Receiver NameData TypeDescription
sessionSessionA Session struct

Parameters:

Parameter NameData TypeDescription
attributeKeystringSession attribute key

public function <Session session> setAttribute(string attributeKey, any attributeValue)

Sets the specified key/value pair as a session attribute

Receiver:

Receiver NameData TypeDescription
sessionSessionA Session struct

Parameters:

Parameter NameData TypeDescription
attributeKeystringSession attribute key
attributeValueanySession attribute Value

public function <Session session> setMaxInactiveInterval(int timeInterval)

Sets the maximum inactive interval for the session. The session expires after this time period.

Receiver:

Receiver NameData TypeDescription
sessionSessionA Session struct

Parameters:

Parameter NameData TypeDescription
timeIntervalintSession max inactive interval


Connectors of ballerina.net.http package

public connector HttpClient (string serviceUri, Options connectorOptions)

Http client connector for outbound HTTP requests

Parameters:

Parameter NameData TypeDescription
serviceUristringUrl of the service
connectorOptionsOptionsconnector options

Actions:

action delete(string path, Request req)

The DELETE action implementation of the HTTP connector

Parameters:

Parameter NameData TypeDescription
pathstringResource path
reqRequestAn HTTP Request struct

Return Parameters:

Return VariableData TypeDescription
ResponseThe response message
HttpConnectorErrorError occured during HTTP client invocation

action execute(string HTTPVerb, string path, Request req)

Invokes an HTTP call with the specified HTTP verb.

Parameters:

Parameter NameData TypeDescription
HTTPVerbstringHTTP verb value
pathstringResource path
reqRequestAn HTTP Request struct

Return Parameters:

Return VariableData TypeDescription
ResponseThe response message
HttpConnectorErrorError occured during HTTP client invocation

action forward(string path, Request req)

forward action can be used to invoke an HTTP call with incoming request HTTPVerb

Parameters:

Parameter NameData TypeDescription
pathstringRequest path
reqRequestAn HTTP Request struct

Return Parameters:

Return VariableData TypeDescription
ResponseThe response message
HttpConnectorErrorError occured during HTTP client invocation

action get(string path, Request req)

GET action implementation of the HTTP Connector

Parameters:

Parameter NameData TypeDescription
pathstringRequest path
reqRequestAn HTTP Request struct

Return Parameters:

Return VariableData TypeDescription
ResponseThe response message
HttpConnectorErrorError occured during HTTP client invocation

action head(string path, Request req)

The HEAD action implementation of the HTTP Connector.

Parameters:

Parameter NameData TypeDescription
pathstringResource path
reqRequestAn HTTP Request struct

Return Parameters:

Return VariableData TypeDescription
ResponseThe response message
HttpConnectorErrorError occured during HTTP client invocation

action options(string path, Request req)

OPTIONS action implementation of the HTTP Connector

Parameters:

Parameter NameData TypeDescription
pathstringRequest path
reqRequestAn HTTP Request struct

Return Parameters:

Return VariableData TypeDescription
ResponseThe response message
HttpConnectorErrorError occured during HTTP client invocation

action patch(string path, Request req)

The PATCH action implementation of the HTTP Connector.

Parameters:

Parameter NameData TypeDescription
pathstringResource path
reqRequestAn HTTP Request struct

Return Parameters:

Return VariableData TypeDescription
ResponseThe response message
HttpConnectorErrorError occured during HTTP client invocation

action post(string path, Request req)

The POST action implementation of the HTTP Connector.

Parameters:

Parameter NameData TypeDescription
pathstringResource path
reqRequestAn HTTP Request struct

Return Parameters:

Return VariableData TypeDescription
ResponseThe response message
HttpConnectorErrorError occured during HTTP client invocation

action put(string path, Request req)

The PUT action implementation of the HTTP Connector.

Parameters:

Parameter NameData TypeDescription
pathstringResource path
reqRequestAn HTTP Request struct

Return Parameters:

Return VariableData TypeDescription
ResponseThe response message
HttpConnectorErrorError occured during HTTP client invocation


Structs of ballerina.net.http package

public struct HeaderValue

Represents an HTTP header value

Fields:

Field Name Data Type Description
valuestringThe value of header
parammapThe param map of header

public struct HttpConnectorError

HttpConnectorError struct represents an error occured during the HTTP client invocation

Fields:

Field Name Data Type Description
msgstringAn error message explaining about the error
causeerrorThe error that caused HttpConnectorError to get thrown
stackTraceStackFrame[]Represents the invocation stack when HttpConnectorError is thrown
statusCodeintHTTP status code

public struct Options

Options struct represents options to be used for HTTP client invocation

Fields:

Field Name Data Type Description
portintPort number of the remote service
endpointTimeoutintEndpoint timeout value in millisecond (default value: 60000 milliseconds)
maxActiveConnectionsintThe maximum number of active connections the connector can create (default value: -1, indicates that the number of connections is not restricted)
keepAlivebooleanKeep the connection or close it (default value: true)
transferEncodingstringThe types of encoding applied to the request (default value: chunking)
chunkingstringThe chunking behaviour of the request
httpVersionstringThe version of HTTP outbound request
followRedirectsFollowRedirectsRedirect related options
sslSSLSSL/TLS related options
retryConfigRetryRetry related options
proxyProxyProxy server related options

public struct Request

Represents an HTTP request message

Fields:

Field Name Data Type Description
remoteHoststringhost: The server host name
portintThe server port
pathstringResource path of request URI
methodstringHTTP request method
httpVersionstringThe version of HTTP
userAgentstringUser-Agent request header
restUriPostFixstringhost: The server host name
headersmapRequest headers

public struct Response

Represents an HTTP response message

Fields:

Field Name Data Type Description
statusCodeintThe response status code
reasonPhrasestringThe status code reason phrase
serverstringThe server header
headersmapResponse headers

public struct Session

Represents an HTTP Session


Annotations of ballerina.net.http package

annotation configuration

Configuration for HTTP service

Attributes:

Attribute NameData TypeDescription
hoststring Host of the service
portint Port number of the service
httpsPortint HTTPS port number of service
basePathstring Service base path
keyStoreFilestring File path to keystore file
keyStorePasswordstring The keystore password
trustStoreFilestring File path to truststore file
trustStorePasswordstring The truststore password
sslVerifyClientstring The type of client certificate verification
certPasswordstring The certificate password
sslEnabledProtocolsstring SSL/TLS protocols to be enabled
ciphersstring List of ciphers to be used
sslProtocolstring The SSL protocol version
allowOriginsstring[] The array of origins with which the response is shared by the service
allowCredentialsboolean Specifies whether credentials are required to access the service
allowMethodsstring[] The array of allowed methods by the service
allowHeadersstring[] The array of allowed headers by the service
maxAgeint The maximum duration to cache the preflight from client side
exposeHeadersstring[] The array of allowed headers which are exposed to the client
keepAliveboolean
transferEncodingstring The types of encoding applied to the response
chunkingstring The chunking behaviour of the response
webSocketwebSocket Annotation to define HTTP to WebSocket upgrade

annotation resourceConfig

Configuration for HTTP resource

Attributes:

Attribute NameData TypeDescription
methodsstring[] The array of allowed HTTP methods
pathstring The path of resource
consumesstring[] The media types which are accepted by resource
producesstring[] The media types which are produced by resource
allowOriginsstring[] The array of origins with which the response is shared by the resource
allowCredentialsboolean Specifies whether credentials are required to access the resource
allowMethodsstring[] The array of allowed methods by the resource
allowHeadersstring[] The array of allowed headers by the resource
maxAgeint The duration to cache the preflight from client side
exposeHeadersstring[] The array of allowed headers which are exposed to the client

annotation webSocket

Annotation to upgrade connection from HTTP to WS in the same base path.

Attributes:

Attribute NameData TypeDescription
upgradePathstring Upgrade path for the WebSocket service from HTTP to WS.
serviceNamestring Name of the WebSocket service where the HTTP service should upgrade to.


Menu

  • Functions
    • <Request> addHeader(string headerName, string headerValue)
    • <Request> createSessionIfAbsent() (Session )
    • <Request> expects100Continue() (boolean )
    • <Request> getBinaryPayload() (blob )
    • <Request> getContentLength() (int )
    • <Request> getFormParams() (map )
    • <Request> getHeader(string headerName) (HeaderValue )
    • <Request> getHeaders(string headerName) (HeaderValue[] )
    • <Request> getJsonPayload() (json )
    • <Request> getMethod() (string )
    • <Request> getProperty(string propertyName) (string )
    • <Request> getQueryParams() (map )
    • <Request> getRequestURL() (string )
    • <Request> getSession() (Session )
    • <Request> getStringPayload() (string )
    • <Request> getXmlPayload() (xml )
    • <Request> removeAllHeaders()
    • <Request> removeHeader(string key)
    • <Request> setBinaryPayload(blob payload)
    • <Request> setHeader(string headerName, string headerValue)
    • <Request> setJsonPayload(json payload)
    • <Request> setProperty(string propertyName, string propertyValue)
    • <Request> setStringPayload(string payload)
    • <Request> setXmlPayload(xml payload)
    • <Response> addHeader(string headerName, string headerValue)
    • <Response> forward(Response resp) (HttpConnectorError )
    • <Response> getBinaryPayload() (blob )
    • <Response> getContentLength() (int )
    • <Response> getHeader(string headerName) (HeaderValue )
    • <Response> getHeaders(string headerName) (HeaderValue[] )
    • <Response> getJsonPayload() (json )
    • <Response> getProperty(string propertyName) (string )
    • <Response> getStatusCode() (int )
    • <Response> getStringPayload() (string )
    • <Response> getXmlPayload() (xml )
    • <Response> removeAllHeaders()
    • <Response> removeHeader(string key)
    • <Response> send() (HttpConnectorError )
    • <Response> send100Continue() (HttpConnectorError )
    • <Response> setBinaryPayload(blob payload)
    • <Response> setHeader(string key, string value)
    • <Response> setJsonPayload(json payload)
    • <Response> setProperty(string propertyName, string propertyValue)
    • <Response> setReasonPhrase(string reasonPhrase)
    • <Response> setStatusCode(int statusCode)
    • <Response> setStringPayload(string payload)
    • <Response> setXmlPayload(xml payload)
    • <Session> getAttribute(string attributeKey) (any )
    • <Session> getAttributeNames() (string[] )
    • <Session> getAttributes() (map )
    • <Session> getCreationTime() (int )
    • <Session> getId() (string )
    • <Session> getLastAccessedTime() (int )
    • <Session> getMaxInactiveInterval() (int )
    • <Session> invalidate()
    • <Session> isNew() (boolean )
    • <Session> removeAttribute(string attributeKey)
    • <Session> setAttribute(string attributeKey, any attributeValue)
    • <Session> setMaxInactiveInterval(int timeInterval)
  • Connectors
    • HttpClient (string serviceUri, Options connectorOptions)
      • delete(string path, Request req)
      • execute(string HTTPVerb, string path, Request req)
      • forward(string path, Request req)
      • get(string path, Request req)
      • head(string path, Request req)
      • options(string path, Request req)
      • patch(string path, Request req)
      • post(string path, Request req)
      • put(string path, Request req)
  • Structs
    • HeaderValue
    • HttpConnectorError
    • Options
    • Request
    • Response
    • Session
  • Annotations
    • configuration
    • resourceConfig
    • webSocket

Copyright 2017 Ballerina API Documentation