HTTPRequest
HTTP Request sent by the Actor using the Send Interaction
Extends:
Question<Promise<AxiosRequestConfig>> → HTTPRequest
Direct Subclasses:
Constructor Summary
Protected Constructor | ||
protected |
constructor(resourceUri: Answerable<string>, data: Answerable<any>, config: Answerable<AxiosRequestConfig>) |
Member Summary
Public Members | ||
public |
subject: string |
Method Summary
Public Methods | ||
public |
answeredBy(actor: AnswersQuestions & UsesAbilities): Promise<AxiosRequestConfig> |
Protected Constructors
protected constructor(resourceUri: Answerable<string>, data: Answerable<any>, config: Answerable<AxiosRequestConfig>) source
Params:
Name | Type | Attribute | Description |
resourceUri | Answerable<string> |
|
URL to which the request should be sent |
data | Answerable<any> |
|
Request body to be sent as part of the Put, Post or Patch request |
config | Answerable<AxiosRequestConfig> |
|
Axios request configuration, which can be used to override the defaults provided when the CallAnApi Ability is instantiated |
Public Members
public subject: string source
Public Methods
public answeredBy(actor: AnswersQuestions & UsesAbilities): Promise<AxiosRequestConfig> source
Params:
Name | Type | Attribute | Description |
actor | AnswersQuestions & UsesAbilities |