B-Arts DocumentationIndice generale

BHttp

Identità

  • Namespace: B.BNet

  • Assembly: BFramework

  • Tipo: class

  • Sorgente API: versione 5.0.0

Scopo

Fornisce richieste HTTP asincrone GET, POST, DELETE e generiche, con supporto per header e proxy. Le operazioni storiche restituiscono direttamente il corpo testuale; RequestResponse permette anche di verificare il codice e l'esito HTTP senza modificare il comportamento dei metodi esistenti.

Dichiarazione

public class BHttp

Costruttori

  • BHttp()

Campi e costanti

Nome Tipo Natura
Client HttpClient static

Metodi

  • static Task<string> BDelete(string url)

  • static Task<string> BGet(string url, List<BItem>? headersKey = null)

  • static Task<string> Post(string url, string parameters)

  • static Task<string> Request(string url, string method, string contentType, NameValueCollection? header, string data, string proxyAddress = "")

  • static Task<BHttpResponse> RequestResponse(string url, string method, string contentType, NameValueCollection? header, string data, string proxyAddress = "")

Esempi

Consultare BHttp - Esempi.