aboutsummaryrefslogtreecommitdiff
path: root/captain/response.f90
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeff@approximatrix.com>2021-04-01 20:41:13 -0400
committerJeffrey Armstrong <jeff@approximatrix.com>2021-04-01 20:41:13 -0400
commitda47fdfddc46e35a939b7771eda21debec50c094 (patch)
tree0eb9ac1333dd3b17e25eca6c4c96f732da357b89 /captain/response.f90
parent3e58313bde5e3e572d84fe014d9902dfb04712c3 (diff)
downloadlevitating-da47fdfddc46e35a939b7771eda21debec50c094.tar.gz
levitating-da47fdfddc46e35a939b7771eda21debec50c094.zip
Started work on API implementation
Diffstat (limited to 'captain/response.f90')
-rw-r--r--captain/response.f9018
1 files changed, 16 insertions, 2 deletions
diff --git a/captain/response.f90 b/captain/response.f90
index 37eaf58..e1d80eb 100644
--- a/captain/response.f90
+++ b/captain/response.f90
@@ -41,7 +41,8 @@ module server_response
procedure :: destroy => request_destroy
procedure :: last_component => request_last_component
procedure :: path_component => request_component
-
+ procedure :: component => request_component_func
+
end type request
contains
@@ -136,6 +137,19 @@ contains
end if
end subroutine request_component
+
+ function request_component_func(self, i) result(res)
+ implicit none
+
+ class(request) :: self
+ integer, intent(in)::i
+ character(128) :: res
+
+ res = " "
+
+ call self%path_component(i, res)
+
+ end function request_component_func
subroutine request_last_component(self, res)
implicit none
@@ -165,7 +179,7 @@ contains
end if
end subroutine request_last_component
-
+
subroutine request_destroy(self)
implicit none