Table of Contents

Enum HttpResponseType

Namespace
DuetAPI.Commands
Assembly
DuetAPI.dll

Enumeration of supported HTTP responses

[JsonConverter(typeof(JsonCamelCaseStringEnumConverter<HttpResponseType>))]
public enum HttpResponseType

Fields

File = 3

File content. Response must hold the absolute path to the file to return

JSON = 2

JSON-formatted data

PlainText = 1

Plain text (UTF-8)

StatusCode = 0

HTTP status code without payload

URI = 4

Send this request to another server (proxy). Response must hold the URI to send the request to