WAX Unity Web3 Suite
EosSharp
EosSharp
  • Getting Started
  • Installation
  • Examples
    • Configuration
    • Create Transaction
    • CustomSignProvider
    • CombinedSignersProvider
  • API Docs
    • API Read Methods
      • GetInfo
      • GetAccount
      • GetBlock
      • GetTableRows
      • GetTableByScope
    • Eos
    • HttpHandler
    • Core
      • Api.v1
        • Abi
        • AbiAction
        • AbiBinToJsonRequest
        • AbiBinToJsonResponse
        • AbiField
        • AbiJsonToBinRequest
        • AbiJsonToBinResponse
        • AbiRicardianClause
        • AbiStruct
        • AbiTable
        • AbiType
        • Action
        • ActionTrace
        • ActivedProtocolFeatures
        • Authority
        • AuthorityAccount
        • AuthorityKey
        • AuthorityWait
        • BlockHeader
        • CurrencyStat
        • DetailedTransaction
        • EosApi
        • ExtendedAsset
        • Extension
        • GetAbiRequest
        • GetAbiResponse
        • GetAccountRequest
        • GetAccountResponse
        • GetActionsRequest
        • GetActionsResponse
        • GetBlockHeaderStateRequest
        • GetBlockHeaderStateResponse
        • GetBlockRequest
        • GetBlockResponse
        • GetCodeRequest
        • GetCodeResponse
        • GetControlledAccountsRequest
        • GetControlledAccountsResponse
        • GetCurrencyBalanceRequest
        • GetCurrencyBalanceResponse
        • GetCurrencyStatsRequest
        • GetCurrencyStatsResponse
        • GetInfoResponse
        • GetKeyAccountsRequest
        • GetKeyAccountsResponse
        • GetProducerScheduleResponse
        • GetProducersRequest
        • GetProducersResponse
        • GetRawAbiRequest
        • GetRawAbiResponse
        • GetRawCodeAndAbiRequest
        • GetRawCodeAndAbiResponse
        • GetRequiredKeysRequest
        • GetRequiredKeysResponse
        • GetScheduledTransactionsRequest
        • GetScheduledTransactionsResponse
        • GetTableByScopeRequest
        • GetTableByScopeResponse
        • GetTableRowsRequest
        • GetTableRowsResponse
        • GetTransactionRequest
        • GetTransactionResponse
        • GlobalAction
        • Merkle
        • PackedTransaction
        • Permission
        • PermissionLevel
        • ProcessedTransaction
        • Producer
        • PushTransactionRequest
        • PushTransactionResponse
        • Receipt
        • RefundRequest
        • Resource
        • Schedule
        • ScheduleProducers
        • ScheduledTransaction
        • SelfDelegatedBandwidth
        • SignedBlockHeader
        • Symbol
        • TableByScopeResultRow
        • TotalResources
        • Transaction
        • TransactionReceipt
        • Variant
        • VoterInfo
      • DataAttributes
        • AbiFieldTypeAttribute
      • EosBase
      • EosConfigurator
      • Exceptions
        • ApiError
        • ApiErrorDetail
        • ApiErrorException
        • ApiException
      • Helpers
        • CryptoHelper
          • KeyPair
        • SerializationHelper
      • Interfaces
        • IHttpHandler
        • ISignProvider
      • EosSharp
        • AbiSerializationProvider
        • CombinedSignersProvider
        • DefaultSignProvider
        • IAbiSerializationProvider
      • SignedTransaction
Powered by GitBook
On this page
  • Summary
  • Members
Edit on GitHub
  1. API Docs

HttpHandler

class EosSharp::HttpHandler
  : public IHttpHandler

Http Handler implementation using System.Net.Http.HttpClient.

Summary

Members
Descriptions

Clear cached responses from requests called with Post/GetWithCacheAsync.

Make post request with data converted to json asynchronously.

Make post request with data converted to json asynchronously.

Make post request with data converted to json asynchronously. Response is cached based on input (url, data)

Make post request with data converted to json asynchronously. Response is cached based on input (url, data)

Make get request asynchronously.

Make get request asynchronously.

Generic http request sent asynchronously.

Generic http request sent asynchronously.

Upsert response data in the data store.

Calculate request unique hash key.

Convert response to stream.

Convert stream to a string.

Generic method to convert a stream with json data to any type.

Build json request data from object data.

Members

Clear cached responses from requests called with Post/GetWithCacheAsync.

Make post request with data converted to json asynchronously.

Parameters

  • TResponseData Response type

Parameters

  • url Url to send the request

  • data data sent in the body

Returns

Response data deserialized to type TResponseData

Make post request with data converted to json asynchronously.

Parameters

  • TResponseData Response type

Parameters

  • url Url to send the request

  • data data sent in the body

  • cancellationToken Notification that operation should be canceled

Returns

Response data deserialized to type TResponseData

Make post request with data converted to json asynchronously. Response is cached based on input (url, data)

Parameters

  • TResponseData Response type

Parameters

  • url Url to send the request

  • data data sent in the body

  • reload ignore cached value and make a request caching the result

Returns

Response data deserialized to type TResponseData

Make post request with data converted to json asynchronously. Response is cached based on input (url, data)

Parameters

  • TResponseData Response type

Parameters

  • url Url to send the request

  • data data sent in the body

  • cancellationToken Notification that operation should be canceled

  • reload ignore cached value and make a request caching the result

Returns

Response data deserialized to type TResponseData

Make get request asynchronously.

Parameters

  • TResponseData Response type

Parameters

  • url Url to send the request

Returns

Response data deserialized to type TResponseData

Make get request asynchronously.

Parameters

  • TResponseData Response type

Parameters

  • url Url to send the request

  • cancellationToken Notification that operation should be canceled

Returns

Response data deserialized to type TResponseData

Generic http request sent asynchronously.

Parameters

  • request request body

Returns

Stream with response

Generic http request sent asynchronously.

Parameters

  • request request body

///

Parameters

  • cancellationToken Notification that operation should be canceled

Returns

Stream with response

Upsert response data in the data store.

Parameters

  • TResponseData response data type

Parameters

  • hashKey data key

  • responseData response data

Calculate request unique hash key.

Parameters

  • url Url to send the request

  • data data sent in the body

Returns

Convert response to stream.

Parameters

  • response response object

Returns

Stream with response

Convert stream to a string.

Parameters

  • stream

Returns

Generic method to convert a stream with json data to any type.

Parameters

  • TData type to convert

Parameters

  • stream stream with json content

Returns

TData object

Build json request data from object data.

Parameters

  • url Url to send the request

  • data object data

Returns

request message

PreviousEosNextCore

Last updated 2 years ago

private Dictionary< string, object >

public void ()

public async Task< TResponseData > (string url, object data)

public async Task< TResponseData > (string url, object data, CancellationToken cancellationToken)

public async Task< TResponseData > (string url, object data, bool reload)

public async Task< TResponseData > (string url, object data, CancellationToken cancellationToken, bool reload)

public async Task< TResponseData > (string url)

public async Task< TResponseData > (string url, CancellationToken cancellationToken)

public async Task< Stream > (HttpRequestMessage request)

public async Task< Stream > (HttpRequestMessage request, CancellationToken cancellationToken)

public void (string hashKey, TResponseData responseData)

public string (string url, object data)

public async Task< Stream > (HttpResponseMessage response)

public async Task< string > (Stream stream)

public TData (Stream stream)

public HttpRequestMessage (string url, object data)

private Dictionary< string, object >

public void ()

public async Task< TResponseData > (string url, object data)

public async Task< TResponseData > (string url, object data, CancellationToken cancellationToken)

public async Task< TResponseData > (string url, object data, bool reload)

public async Task< TResponseData > (string url, object data, CancellationToken cancellationToken, bool reload)

public async Task< TResponseData > (string url)

public async Task< TResponseData > (string url, CancellationToken cancellationToken)

public async Task< Stream > (HttpRequestMessage request)

public async Task< Stream > (HttpRequestMessage request, CancellationToken cancellationToken)

public void (string hashKey, TResponseData responseData)

public string (string url, object data)

public async Task< Stream > (HttpResponseMessage response)

public async Task< string > (Stream stream)

public TData (Stream stream)

public HttpRequestMessage (string url, object data)

ResponseCache
ClearResponseCache
PostJsonAsync< TResponseData >
PostJsonAsync< TResponseData >
PostJsonWithCacheAsync< TResponseData >
PostJsonWithCacheAsync< TResponseData >
GetJsonAsync< TResponseData >
GetJsonAsync< TResponseData >
SendAsync
SendAsync
UpdateResponseDataCache< TResponseData >
GetRequestHashKey
BuildSendResponse
StreamToStringAsync
DeserializeJsonFromStream< TData >
BuildJsonRequestMessage
ResponseCache
ClearResponseCache
PostJsonAsync< TResponseData >
PostJsonAsync< TResponseData >
PostJsonWithCacheAsync< TResponseData >
PostJsonWithCacheAsync< TResponseData >
GetJsonAsync< TResponseData >
GetJsonAsync< TResponseData >
SendAsync
SendAsync
UpdateResponseDataCache< TResponseData >
GetRequestHashKey
BuildSendResponse
StreamToStringAsync
DeserializeJsonFromStream< TData >
BuildJsonRequestMessage