-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http_counter example updated and passing
- Loading branch information
Showing
5 changed files
with
109 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,22 @@ | ||
type CallbackStrategy = record { | ||
token : Token; | ||
callback : func (Token) -> (StreamingCallbackHttpResponse) query; | ||
}; | ||
type HttpRequest = record { | ||
url : text; | ||
method : text; | ||
body : vec nat8; | ||
headers : vec record { text; text }; | ||
}; | ||
type HttpResponse = record { | ||
body : vec nat8; | ||
headers : vec record { text; text }; | ||
upgrade : opt bool; | ||
streaming_strategy : opt StreamingStrategy; | ||
status_code : nat16; | ||
}; | ||
type StreamingCallbackHttpResponse = record { | ||
token : opt Token; | ||
body : vec nat8; | ||
}; | ||
type StreamingStrategy = variant { Callback : CallbackStrategy }; | ||
type Token = record { arbitrary_data : text }; | ||
service : () -> { | ||
http_request : (HttpRequest) -> (HttpResponse) query; | ||
http_request_update : (HttpRequest) -> (HttpResponse); | ||
http_streaming : (Token) -> (StreamingCallbackHttpResponse) query; | ||
} | ||
type rec_0 = record {url:text; method:text; body:vec nat8; headers:vec record {text; text}}; | ||
type rec_6 = record {arbitrary_data:text}; | ||
type rec_5 = record {arbitrary_data:text}; | ||
type rec_4 = record {token:opt rec_5; body:vec nat8}; | ||
type rec_3 = record {token:rec_6; callback:func (text) -> (rec_4) query}; | ||
type rec_2 = variant {Callback:rec_3}; | ||
type rec_1 = record {body:vec nat8; headers:vec record {text; text}; upgrade:opt bool; streaming_strategy:opt rec_2; status_code:nat16}; | ||
type rec_7 = record {url:text; method:text; body:vec nat8; headers:vec record {text; text}}; | ||
type rec_13 = record {arbitrary_data:text}; | ||
type rec_12 = record {arbitrary_data:text}; | ||
type rec_11 = record {token:opt rec_12; body:vec nat8}; | ||
type rec_10 = record {token:rec_13; callback:func (text) -> (rec_11) query}; | ||
type rec_9 = variant {Callback:rec_10}; | ||
type rec_8 = record {body:vec nat8; headers:vec record {text; text}; upgrade:opt bool; streaming_strategy:opt rec_9; status_code:nat16}; | ||
type rec_14 = record {arbitrary_data:text}; | ||
type rec_16 = record {arbitrary_data:text}; | ||
type rec_15 = record {token:opt rec_16; body:vec nat8}; | ||
service: () -> { | ||
http_request: (rec_0) -> (rec_1) query; | ||
http_request_update: (rec_7) -> (rec_8); | ||
http_streaming: (rec_14) -> (rec_15) query; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters