diff --git a/client_wrapper.go b/client_wrapper.go index d6540450..f460fdaf 100644 --- a/client_wrapper.go +++ b/client_wrapper.go @@ -409,6 +409,18 @@ func SetCommonHeader(key, value string) *Client { return defaultClient.SetCommonHeader(key, value) } +// SetCommonHeaderOrder is a global wrapper methods which delegated +// to the default client's Client.SetCommonHeaderOrder. +func SetCommonHeaderOrder(keys ...string) *Client { + return defaultClient.SetCommonHeaderOrder(keys...) +} + +// SetCommonPseudoHeaderOder is a global wrapper methods which delegated +// to the default client's Client.SetCommonPseudoHeaderOder. +func SetCommonPseudoHeaderOder(keys ...string) *Client { + return defaultClient.SetCommonPseudoHeaderOder(keys...) +} + // SetCommonContentType is a global wrapper methods which delegated // to the default client's Client.SetCommonContentType. func SetCommonContentType(ct string) *Client { diff --git a/request_wrapper.go b/request_wrapper.go index 050eaad0..fec48b40 100644 --- a/request_wrapper.go +++ b/request_wrapper.go @@ -132,6 +132,18 @@ func SetHeader(key, value string) *Request { return defaultClient.R().SetHeader(key, value) } +// SetHeaderOrder is a global wrapper methods which delegated +// to the default client, create a request and SetHeaderOrder for request. +func SetHeaderOrder(keys ...string) *Request { + return defaultClient.R().SetHeaderOrder(keys...) +} + +// SetPseudoHeaderOrder is a global wrapper methods which delegated +// to the default client, create a request and SetPseudoHeaderOrder for request. +func SetPseudoHeaderOrder(keys ...string) *Request { + return defaultClient.R().SetPseudoHeaderOrder(keys...) +} + // SetOutputFile is a global wrapper methods which delegated // to the default client, create a request and SetOutputFile for request. func SetOutputFile(file string) *Request {