Skip to content

Commit

Permalink
Merge pull request #22 from dfinity/exc-1056-http-request
Browse files Browse the repository at this point in the history
IC00 HTTP request - Return error via Reject
  • Loading branch information
AlexandraZapuc authored Apr 8, 2022
2 parents 9acd361 + 9313ba6 commit 3095a45
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions spec/ic.did
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,6 @@ type http_response = record {
body: blob;
};

type http_request_error = variant {
no_consensus;
timeout;
bad_tls;
invalid_url;
transform_error;
dns_error;
unreachable;
conn_timeout;
};

service ic : {
create_canister : (record {
settings : opt canister_settings
Expand Down Expand Up @@ -72,7 +61,7 @@ service ic : {
transform : opt variant {
function: func (http_response) -> (http_response) query
};
}) -> (variant { Ok : http_response; Err: opt http_request_error });
}) -> (http_response);

// provisional interfaces for the pre-ledger world
provisional_create_canister_with_cycles : (record {
Expand Down

0 comments on commit 3095a45

Please sign in to comment.