@@ -162,6 +162,9 @@ export interface HttpRequest {
162162
163163 /** OperationId defined in OpenAPI */
164164 readonly operationId : string ;
165+
166+ /** Returns a string representing this HttpRequest object. */
167+ toString ( ) : string
165168}
166169
167170/**
@@ -170,7 +173,7 @@ export interface HttpRequest {
170173 */
171174export interface HttpResponse {
172175 /** Object contains header parameters specified by OpenAPI header parameters. */
173- headers : { [ key : string ] : string } ;
176+ headers : { [ key : string ] : any } ;
174177
175178 /** Specifies the http status used to select the OpenAPI response definition. */
176179 statusCode : number ;
@@ -192,11 +195,17 @@ export interface Url {
192195 /** URL host. */
193196 readonly host : string ;
194197
198+ /** URL port */
199+ readonly port : number ;
200+
195201 /** URL path. */
196202 readonly path : string ;
197203
198204 /** URL query string. */
199205 readonly query : string ;
206+
207+ /** Returns a string representing this Url object. */
208+ toString ( ) : string ;
200209}
201210
202211/**
@@ -429,20 +438,20 @@ export type DateLayout =
429438 */
430439export interface EventArgs {
431440 /**
432- * Optional key-value pairs used to label the event in the dashboard.
441+ * Adds or overrides existing tags used to label the event in dashboard
433442 */
434443 tags ?: { [ key : string ] : string } ;
435444
436445 /**
437446 * Set to `true` to enable tracking of this event handler in the dashboard.
438- * If omitted, Mokapi automatically checks whether the response object has
439- * been modified and tracks the handler only if a change is detected .
447+ * Set to `false` to disable tracking. If omitted, Mokapi checks the response
448+ * object to determine if the handler changed it, and tracks it accordingly .
440449 */
441450 track ?: boolean ;
442451}
443452
444453/**
445- * cheduledEventArgs is an object used by every and cron function.
454+ * ScheduledEventHandler is an object used by every and cron function.
446455 * https://mokapi.io/docs/javascript-api/mokapi/eventhandler/scheduledeventargs
447456 * @example
448457 * export default function() {
@@ -631,4 +640,4 @@ export interface SharedMemory {
631640 * mokapi.log(`Current counter: ${count}`)
632641 * ```
633642 */
634- export const shared : SharedMemory ;
643+ export const shared : SharedMemory ;
0 commit comments