list_languages Subroutine

private subroutine list_languages(this)

Uses

    • http
  • proc~~list_languages~~UsesGraph proc~list_languages forcompile::compiler_explorer%list_languages http http proc~list_languages->http

Type Bound

compiler_explorer

Arguments

Type IntentOptional Attributes Name
class(compiler_explorer), intent(inout) :: this

Calls

proc~~list_languages~~CallsGraph proc~list_languages forcompile::compiler_explorer%list_languages request request proc~list_languages->request

Contents

Source Code


Source Code

   subroutine list_languages(this)
      use http, only: response_type, request
      class(compiler_explorer), intent(inout) :: this
      type(response_type)                     :: response

      response = request(url=this%api_url//'/api/languages')
      if(.not. response%ok) then
         print *,'Error message : ', response%err_msg
      else
         print *, 'Response Content : ', response%content
      end if
   end subroutine list_languages