Ejemplo n.º 1
0
        public static async ValueTask <Maybe <string> > AsMaybeOfString(this GanymedeHttpResponse httpResponse)
        {
            if (httpResponse.IsSuccessStatusCode)
            {
                return(Maybe <string> .Some(await httpResponse.AsString()));
            }

            return(Maybe <string> .None);
        }
Ejemplo n.º 2
0
        public async Task <string> Get()
        {
            GanymedeHttpResponse s = await NewRequest.ForResource("Get").Send();

            return(await s.AsString());
        }