%% Different Header Field Classes Are Equivalent
% This comparison evaluates to true, even though one object being compared is a HeaderField object and the other is a DateField object.

import matlab.net.http.HeaderField
import matlab.net.http.field.DateField
dt = datetime('now');
HeaderField('Date',dt) == DateField(dt)

% Copyright 2012 The MathWorks, Inc.