Share via


IHttpClient.Get Method

.NET Framework 4

Makes an asynchronous http GET request to the specified url.

Namespace:  Microsoft.AspNet.SignalR.Client.Http
Assembly:  Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)

Syntax

'Declaration
Function Get ( _
    url As String, _
    prepareRequest As Action(Of IRequest) _
) As Task(Of IResponse)
'Usage
Dim instance As IHttpClient 
Dim url As String 
Dim prepareRequest As Action(Of IRequest)
Dim returnValue As Task(Of IResponse)

returnValue = instance.Get(url, prepareRequest)
Task<IResponse> Get(
    string url,
    Action<IRequest> prepareRequest
)
Task<IResponse^>^ Get(
    String^ url, 
    Action<IRequest^>^ prepareRequest
)
abstract Get : 
        url:string * 
        prepareRequest:Action<IRequest> -> Task<IResponse> 
function Get(
    url : String, 
    prepareRequest : Action<IRequest>
) : Task<IResponse>

Parameters

  • prepareRequest
    Type: System.Action<IRequest>
    A callback that initializes the request with default values.

Return Value

Type: System.Threading.Tasks.Task<IResponse>
A.Task<TResult>.

See Also

Reference

IHttpClient Interface

Microsoft.AspNet.SignalR.Client.Http Namespace