Main Content

matlab.net.http.HeaderField.displaySubclasses

クラス: matlab.net.http.HeaderField
名前空間: matlab.net.http

サポートされる HeaderField サブクラスの表示

説明

matlab.net.http.HeaderField.displaySubclassesmatlab.net.http.field 名前空間の HeaderField クラスのすべてのサブクラスと、それらがサポートするヘッダー フィールド名を表示します。これらのサブクラスを使用して一般的なヘッダー フィールドを構築します。

[fields,names] = matlab.net.http.HeaderField.displaySubclasses はサブクラス名を string の配列として fields に返します。メソッドは、サブクラスがサポートするヘッダー フィールド名を、サブクラスがサポートする string ベクトルの cell 配列である names に返します。names{i} には fields(i) でサポートされる名前が格納されます。fields(i) にサポートする名前の制約がない場合、names{i} は空になります。

属性

Sealedtrue
Statictrue

すべて展開する

matlab.net.http.field 名前空間のクラスのすべてのヘッダー フィールド名を表示します。IntegerField または URIReferenceField ヘッダー フィールド オブジェクトの名前を選択するときにこのコマンドを使用します。これらのオブジェクトの Name プロパティをこのリストの名前のいずれかにすることはできません。

matlab.net.http.HeaderField.displaySubclasses
Available classes in matlab.net.http.field and names they support:
AcceptField              Accept
AuthenticateField        WWW-Authenticate, Proxy-Authenticate
AuthenticationInfoField  Authentication-Info, Proxy-Authentication-Info
AuthorizationField       Authorization, Proxy-Authorization
ConnectionField          Connection
ContentLengthField       Content-Length
ContentLocationField     Content-Location
ContentTypeField         Content-Type
CookieField              Cookie
DateField                Date
GenericField             
HTTPDateField            Date, Expires, Retry-After, Accept-Datetime, Last-Modified, If-Modified-Since
HostField                Host
IntegerField             
LocationField            Location
SetCookieField           Set-Cookie
URIReferenceField        

HTTPDateField クラスを使用して作成できるヘッダー フィールドを表示します。

[fields,names] = matlab.net.http.HeaderField.displaySubclasses;
for i = 1:numel(fields)
    if (strcmp(fields(i),'HTTPDateField'))
        disp(names{i})
        break
    end
end
    "Date"    "Expires"    "Retry-After"    "Accept-Datetime"    "Last-Modified"    "If-Modified-Since"

バージョン履歴

R2016b で導入

参考