MobileBackendCreateHttpClient Method |
Configures and returns a new HttpClient instance that can talk to the Mobile Backend. Auth and Diagnostics
headers will be automatically inserted.
Namespace: Oracle.Cloud.Mobile.MobileBackendAssembly: Oracle.Cloud.Mobile (in Oracle.Cloud.Mobile.dll) Version: 16.1.3.1 (16.1.3.1)
Syntaxpublic HttpClient CreateHttpClient(
string mediaType = "application/json"
)
Public Function CreateHttpClient (
Optional mediaType As String = "application/json"
) As HttpClient
public:
virtual HttpClient^ CreateHttpClient(
String^ mediaType = L"application/json"
) sealed
abstract CreateHttpClient :
?mediaType : string
(* Defaults:
let _mediaType = defaultArg mediaType "application/json"
*)
-> HttpClient
override CreateHttpClient :
?mediaType : string
(* Defaults:
let _mediaType = defaultArg mediaType "application/json"
*)
-> HttpClient
Parameters
- mediaType (Optional)
- Type: SystemString
The media type for the Accept header.
Return Value
Type:
HttpClientA System.Net.Http.HttpClient instance.
Implements
IMobileBackendCreateHttpClient(String)
See Also