A derived type, responsible for making actual HTTP
request
using fortran-curl at backend.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(request_type), | public | :: | request |
Interface for
new_client
function.
This is the constructor for the
client_type
derived 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
request
to a server using the fortran-curl package and stores the server's response in aresponse_type
object.
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