Class HttpEndpoint
Class representing an extra HTTP endpoint
Inherited Members
Namespace: DuetAPI.ObjectModel
Assembly: DuetAPI.dll
Syntax
public sealed class HttpEndpoint : ModelObject, IModelObject, ICloneable, INotifyPropertyChanged, INotifyPropertyChanging
Fields
RepRapFirmwareNamespace
Namespace prefix used for RepRapFirmware HTTP requests
Declaration
public const string RepRapFirmwareNamespace = "rr_"
Field Value
Type | Description |
---|---|
string |
Properties
EndpointType
HTTP type of this endpoint
Declaration
public HttpEndpointType EndpointType { get; set; }
Property Value
Type | Description |
---|---|
HttpEndpointType |
IsUploadRequest
Whether this is a upload request
Declaration
public bool IsUploadRequest { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
If set to true, the whole body payload is written to a temporary file and the file path is passed via the Body property
Namespace
Namespace of the endpoint
Declaration
public string Namespace { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
May be RepRapFirmwareNamespace to register root-level rr_ requests (to emulate RRF poll requests)
Path
Path to the endpoint
Declaration
public string Path { get; set; }
Property Value
Type | Description |
---|---|
string |
UnixSocket
Path to the UNIX socket
Declaration
public string UnixSocket { get; set; }
Property Value
Type | Description |
---|---|
string |