Skip to content

Response:writeFile() #108

@lingbl

Description

@lingbl

function Response:writeFile(file, contentType)
self:contentType(contentType)
self:statusCode(200)
local value = file:read('*a') <<---- "file" is not string, but in readme, this is string
file:close()
self:write(value)

return self
end

In readme:
writeFile(string:file) It creates the body with the content of the file passed as parameter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions