MTConnect.NET-AgentModule-HttpServer
6.5.1
dotnet add package MTConnect.NET-AgentModule-HttpServer --version 6.5.1
NuGet\Install-Package MTConnect.NET-AgentModule-HttpServer -Version 6.5.1
<PackageReference Include="MTConnect.NET-AgentModule-HttpServer" Version="6.5.1" />
paket add MTConnect.NET-AgentModule-HttpServer --version 6.5.1
#r "nuget: MTConnect.NET-AgentModule-HttpServer, 6.5.1"
// Install MTConnect.NET-AgentModule-HttpServer as a Cake Addin #addin nuget:?package=MTConnect.NET-AgentModule-HttpServer&version=6.5.1 // Install MTConnect.NET-AgentModule-HttpServer as a Cake Tool #tool nuget:?package=MTConnect.NET-AgentModule-HttpServer&version=6.5.1
MTConnect HTTP Server Agent Module
This Agent Module implements a MTConnect REST Protocol Http server
Configuration
modules:
- http-server:
hostname: localhost
port: 5000
allowPut: true
indentOutput: true
documentFormat: xml
accept:
text/xml: xml
application/json: json-cppagent
responseCompression:
- gzip
- br
files:
- path: schemas
location: schemas
- path: styles
location: styles
- path: styles/favicon.ico
location: favicon.ico
hostname
- The server IP Address or Hostname to bind to.port
- The port number the agent binds to for requests.accept
- Maps HTTP Accept Headers to the corresponding Document Format IDresponseCompression
- Sets the List of Encodings (ex. gzip, br, deflate) to pass to the Accept-Encoding HTTP Headerversion
- Sets the MTConnect Version to use for the response document. This can be used to request a document using an older version for legacy clientsallowPut
- Allow HTTP PUT or POST of data item values or assets.allowPutFrom
- Allow HTTP PUT or POST from a specific host or list of hosts.indentOutput
- Sets the indentation of the response document. True = Indent. False = Do not IndentoutputComments
- Sets the default response document comments output. Comments contain descriptions from the MTConnect standardoutputValidationLevel
- Sets the default response document validation level. 0 = Ignore, 1 = Warning, 2 = Strictfiles
- Sets the configuration for Static Files that can be served from the Http Server.path
- The location of the files on the server (where the Agent is running)location
- The path to match in the requested URL
tls
- Sets the TLS settingspfx
- The PFX certificate settingscertificatePath
- The path to the (.pfx) filecertificatePassword
- The certificate password
pem
- The PEM certificate settingscertificatePath
- The path to the (.pem) fileprivateKeyPath
- The path to the key containing the private keyprivateKeyPassword
- The certificate passwordcertificateAuthority
- The path to the (.pem) file containing the Certificate Authority
verifyClientCertificate
- Toggles whether Client Certificate chains are verified ("true" or "false")
Example 1
Use defualt configuration
modules:
- http-server:
Example 2
Specify the port
modules:
- http-server:
port: 5001
Example 3
Specify the port and hostname to an IP Address
modules:
- http-server:
hostname: 192.168.1.145
port: 5001
Example 4
Specify the port and hostname
modules:
- http-server:
hostname: DESKTOP-HV74M4N
port: 5001
Example 4
Specify the port and hostname with TLS (PFX Certificate)
modules:
- http-server:
hostname: DESKTOP-HV74M4N
port: 5001
tls:
pfx:
certificatePath: c:\certs\mtconnect-testing.pfx
certificatePassword: mtconnect
Example 5
Specify the port and hostname with TLS (PEM Certificate)
modules:
- http-server:
hostname: DESKTOP-HV74M4N
port: 5001
tls:
pem:
certificateAuthority: c:\certs\rootCA.crt
certificatePath: c:\certs\mtconnect-testing.crt
privateKeyPath: c:\certs\mtconnect-testing.key
privateKeyPassword: mtconnect
Example 6
Specify with custom Accept headers
modules:
- http-server:
accept:
text/xml: xml
application/json: json-cppagent
Contribution / Feedback
- Please use the Issues tab to create issues for specific problems that you may encounter
- Please feel free to use the Pull Requests tab for any suggested improvements to the source code
- For any other questions or feedback, please contact TrakHound directly at info@trakhound.com.
License
This application and it's source code is licensed under the MIT License and is free to use.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 is compatible. net462 is compatible. net463 was computed. net47 is compatible. net471 is compatible. net472 is compatible. net48 is compatible. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.1
- MTConnect.NET-HTTP (>= 6.5.1)
- MTConnect.NET-SHDR (>= 6.5.1)
-
.NETFramework 4.6.2
- MTConnect.NET-HTTP (>= 6.5.1)
- MTConnect.NET-SHDR (>= 6.5.1)
-
.NETFramework 4.7
- MTConnect.NET-HTTP (>= 6.5.1)
- MTConnect.NET-SHDR (>= 6.5.1)
-
.NETFramework 4.7.1
- MTConnect.NET-HTTP (>= 6.5.1)
- MTConnect.NET-SHDR (>= 6.5.1)
-
.NETFramework 4.7.2
- MTConnect.NET-HTTP (>= 6.5.1)
- MTConnect.NET-SHDR (>= 6.5.1)
-
.NETFramework 4.8
- MTConnect.NET-HTTP (>= 6.5.1)
- MTConnect.NET-SHDR (>= 6.5.1)
-
.NETStandard 2.0
- MTConnect.NET-HTTP (>= 6.5.1)
- MTConnect.NET-SHDR (>= 6.5.1)
-
net6.0
- MTConnect.NET-HTTP (>= 6.5.1)
- MTConnect.NET-SHDR (>= 6.5.1)
-
net7.0
- MTConnect.NET-HTTP (>= 6.5.1)
- MTConnect.NET-SHDR (>= 6.5.1)
-
net8.0
- MTConnect.NET-HTTP (>= 6.5.1)
- MTConnect.NET-SHDR (>= 6.5.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MTConnect.NET-AgentModule-HttpServer:
Package | Downloads |
---|---|
MTConnect.NET-Applications-Agents
MTConnect.NET-Applications-Agents contains classes to fully implement an MTConnect Agent application. Supports MTConnect Versions up to 2.3. Supports .NET Framework 4.6.1 up to .NET 8 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
6.5.1 | 119 | 12/3/2024 |
6.5.0 | 227 | 10/21/2024 |
6.4.7 | 178 | 8/21/2024 |
6.4.6 | 149 | 8/7/2024 |
6.4.5 | 113 | 8/2/2024 |
6.4.4 | 139 | 7/16/2024 |
6.4.3 | 150 | 6/14/2024 |
6.4.2 | 134 | 6/12/2024 |
6.4.1 | 145 | 5/17/2024 |
6.4.0 | 138 | 5/14/2024 |
6.3.2-beta | 121 | 5/2/2024 |
6.3.1-beta | 283 | 4/24/2024 |
6.3.0-beta | 125 | 4/17/2024 |
6.2.2-beta | 114 | 4/5/2024 |
6.2.1-beta | 111 | 4/3/2024 |
6.2.0-beta | 106 | 3/27/2024 |
6.1.3-beta | 112 | 3/15/2024 |
6.1.2-beta | 122 | 3/15/2024 |
6.0.11-beta | 139 | 2/2/2024 |
6.0.10-beta | 113 | 1/26/2024 |
6.0.9-beta | 176 | 12/28/2023 |
6.0.8-beta | 132 | 12/27/2023 |
6.0.7-beta | 141 | 12/19/2023 |
6.0.5-beta | 151 | 12/14/2023 |
6.0.3-beta | 156 | 12/12/2023 |
6.0.1-beta | 133 | 12/7/2023 |
6.0.0-beta | 144 | 12/7/2023 |