teja_http_json 0.1.0 copy "teja_http_json: ^0.1.0" to clipboard
teja_http_json: ^0.1.0 copied to clipboard

outdatedDart 1 only

A small utility library over Dart's package:http to make JSON request simpler

teja_http_json #

A small utility library over Dart's package:http to make JSON request simpler

Usage #

Get request #

final JsonResponse resp =
    await client.get('http://localhost:8080/api/list');
print(resp.body);

Post request #

final JsonResponse resp = await client
    .post('http://localhost:8080/api/map', body: {'posting': 'hello'});
print(resp.body);

Put request #

final JsonResponse resp = await client
    .put('http://localhost:8080/api/map', body: {'putting': 'hello'});
print(resp.body);

Delete request #

final JsonResponse resp =
    await client.delete('http://localhost:8080/api/map/123?query=why');
print(resp.body);
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A small utility library over Dart's package:http to make JSON request simpler

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

http

More

Packages that depend on teja_http_json