HolyLib Wiki

HttpRequest:SetContent

  HttpRequest:SetContent( string content, string contentType = text/plain )

Description

Sets the content for the response.

Recently Added

This was recently added in version (0.8).

Added with the HttpResponse merge into this class

Arguments

1string content

the content to set

2string contentType = text/plain

the content type to use