This file contains hidden or 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
| class Calculator { | |
| fun sum(a: Int, b: Int) = a + b | |
| } |
This file contains hidden or 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
| Future<Response> get(String url) async { | |
| String wsseHeader = await generateAuthHeader(); | |
| final response = await httpClient.get(url, | |
| headers: { | |
| HttpHeaders.contentTypeHeader: 'application/vnd.api+json', | |
| 'Authorization': 'WSSE profile="UsernameToken"', | |
| 'X-WSSE': wsseHeader | |
| }, | |
| ); |
NewerOlder