Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
public void get(WebClient client) { client .post(8181, "localhost", "/graphql") .putHeader("Content-Type", "application/json") .sendJsonObject( new JsonObject() .put("query", "{Book { uuid, book_name, author }}") ) .onSuccess(res -> { if (res.statusCode() == 200 && res.getHeader("content-type").equals("application/json;charset=utf-8")) { JsonObject body = res.bodyAsJsonObject(); post(client, body); } }); } public void post(WebClient client, JsonObject body) { client .post(8181, "localhost", "/http") .putHeader("Content-Type", "application/json") .putHeader("auth-token", "9f226286-e0d8-4125-ad43-b123b4e464da") .sendJsonObject(body) .onSuccess(res -> { //todo }); }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)