A derived type, responsible for making actual HTTP
requestusing fortran-curl at backend.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(request_type), | public | :: | request |
Interface for
new_clientfunction.
This is the constructor for the
client_typederived type.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(request_type), | intent(in) | :: | request |
Specifies the HTTP |
A client_type object containing the request field set to the input request object.
This function sends an HTTP
requestto a server using the fortran-curl package and stores the server's response in aresponse_typeobject.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(client_type), | intent(inout) | :: | this |
Contains the HTTP |
Contains the server's response.
type :: client_type
!!> A derived type, responsible for making **actual HTTP `request`** using
!!> fortran-curl at backend.
type(request_type) :: request
contains
procedure :: client_get_response
end type client_type