http_ Derived Type

type, public :: http_

A class for creating HTTP connection.


Components

Type Visibility Attributes Name Initial
character(len=1000), public :: body = "Hello!"
character(len=1000), public :: token = "your_access_token"
character(len=100), public :: channel = "your_channel"
character(len=1000), public :: url = "url"

Type-Bound Procedures

procedure, public :: post => posthttp

HTTP POST

  • public subroutine posthttp(obj)

    Arguments

    Type IntentOptional Attributes Name
    class(http_), intent(in) :: obj

procedure, public :: get => gethttp

HTTP GET

  • public subroutine gethttp(obj)

    Arguments

    Type IntentOptional Attributes Name
    class(http_), intent(in) :: obj