list_formatters Subroutine

private subroutine list_formatters(this)

Uses

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

Type Bound

compiler_explorer

Arguments

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

Calls

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

Contents

Source Code


Source Code

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

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