Functions of org.wso2.ballerina.connectors.basicauth package
function constructBasicAuthHeader(message request, string encodedBasicAuthValue, string userName, string password) (string )
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
request | message | |
encodedBasicAuthValue | string | |
userName | string | |
password | string |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
string |
Connectors of org.wso2.ballerina.connectors.basicauth package
connector ClientConnector (string baseUrl, string userName, string password)
Basic Auth client connector
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
baseUrl | string | The endpoint base url |
userName | string | The user name of the account |
password | string | The password of the account |
action delete()
Delete with basic authentication
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
clientConnector | ClientConnector | The basicauth Connector instance |
path | string | The endpoint path |
request | message | The request of the method |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action get()
Get with basic authentication
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
clientConnector | ClientConnector | The basicauth Connector instance |
path | string | The endpoint path |
request | message | The request of the method |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action post()
Post with basic authentication
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
clientConnector | ClientConnector | The basicauth Connector instance |
path | string | The endpoint path |
request | message | The request of the method |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action put()
Put with basic authentication
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
clientConnector | ClientConnector | The basicauth Connector instance |
path | string | The endpoint path |
request | message | The request of the method |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |