Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Dart

Idiom #174 Make HTTP POST request

Make a HTTP request with method POST to the URL u

import 'package:http/http.dart';
await post(u, body: body, headers: headers);
using System.Net.Http;
new HttpClient().PostAsync(u, content);

New implementation...
< >
programming-idioms.org