[−][src]Module transistor::http
Http Client module. It contains the HttpClient
for Docker and Standalone HTTP Server.
HttpClient
Contains the following functions:
state
queries endpoint/
with aGET
. No args.tx_log
requests endpoint/tx-log
viaPOST
. A Vector oftypes::http::Action
is expected as argument.tx_logs
requests endpoint/tx-log
viaGET
. No args.entity
requests endpoint/entity
viaPOST
. A serializedCruxId
, serializedEdn::Key
or a String containing akeyword
must be passed as argument.entity_tx
requests endpoint/entity-tx
viaPOST
. A serializedCruxId
, serializedEdn::Key
or a String containing akeyword
must be passed as argument.entity_history
requests endpoint/entity-history
viaGET
. Arguments are thecrux.db/id
as aString
, an ordering argument defined by the enumtypes::http::Order
(Asc
orDesc
) and a boolean for thewith-docs?
flag (this returns values for the field:crux.db/doc
).entity_history_timed
similar toentity_history
, but receives one more argument that is aVec<TimeHistory>
to definevalid-time
andtransaction-time
query
requests endpoint/query
viaPOST
. Argument is aquery
of the typeQuery
. Retrives a Set containing a vector of the values defined by the functionQuery::find
.
Examples can be found in the examples directory.
Structs
HttpClient |
|