Path: redb-route/redb.Route.Ftp/FtpHeaders.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Ftp/FtpHeaders.cs
----
namespace redb.Route.Ftp;
///
/// Constants for exchange headers set by the FTP component.
/// All prefixed with "redbFtp." to avoid collisions with other components.
///
public static class FtpHeaders
{
/// Common prefix for all FTP component headers.
public const string Prefix = "redbFtp.";
// ── Headers set on the In message by the consumer ────────────────
/// Full file name with extension (e.g. "report.csv").
public const string FileName = "redbFtp.Name";
/// File name without the extension (e.g. "report").
public const string FileNameOnly = "redbFtp.NameOnly";
/// File extension including the dot (e.g. ".csv").
public const string FileExtension = "redbFtp.Extension";
/// Full remote path on the FTP server (e.g. "/upload/report.csv").
public const string RemotePath = "redbFtp.RemotePath";
/// Path relative to the polling base directory.
public const string RelativePath = "redbFtp.RelativePath";
/// Parent directory on the remote server.
public const string RemoteParent = "redbFtp.RemoteParent";
/// File size in bytes.
public const string FileLength = "redbFtp.Length";
/// Last modified date/time as DateTimeOffset (UTC).
public const string FileLastModified = "redbFtp.LastModified";
/// FTP server host that the file was retrieved from.
public const string Host = "redbFtp.Host";
/// FTP server port.
public const string Port = "redbFtp.Port";
/// Username used for the FTP connection.
public const string Username = "redbFtp.Username";
// ── Headers set by the producer after uploading ──────────────────
/// Full remote path of the file that was actually written by the producer.
public const string FileNameProduced = "redbFtp.NameProduced";
}