Automate

Automate

Make your phone or tablet smarter with automation

Get it on Google Play

HTTP response

An action block that sends a response to an incoming HTTP request from prior a HTTP serve block.

The fiber will pause until the response has been sent.

The response content body and response content path can both be arrays thereof, the elements of both are interleaved beginning with body then file, body and so on. If only one array is used, or one is longer that the other, the (remaining) elements are simply concatenated. null elements are ignored. This can be used to concatenate files before upload, or send a multipart body.

Input arguments

  • Response status code — status code to send, default is OK.
  • Response content type — content MIME type of response content.
  • Response content body — response body content, either text, array or dictionary, default is no content.
  • Response content path — a file path, or array thereof, to include in response or to upload as body content, default is no file upload.
  • Response headers — a dictionary with additional response headers, use camel case for keys, e.g. "Content-Disposition".
Note! This documentation is also accessible within the app from Help & feedback menu.