Feature #509

HTTP method in UBUF from restincl.

Added by Haralds over 4 years ago. Updated about 4 years ago.

Status:ClosedStart date:01/30/2020
Priority:Normal (Code 4)Due date:
Assignee:-% Done:

100%

Category:-
Target version:-

Description

Currently the UBUF from restincl doesn't contain information about HTTP method GET/POST/PATCH/DELETE.

History

#1 Updated by Madars over 4 years ago

  • Project changed from Enduro/X Core to endurox-connect
Hi! Some updates:
1st - ir viena ļoti steidzama lieta Madaram: restincl nepievieno HTTP metodi nevienā laukā, šeit vajag GET/POST/PATCH/DELETE . Lokāli ir uztaisīts ātrs haks, bet nu vajag "oficiālu" versiju

diff --git a/go/src/restincl/workerpool.go b/go/src/restincl/workerpool.go
index 1c1a1c9..250c075 100644
--- a/go/src/restincl/workerpool.go
+++ b/go/src/restincl/workerpool.go
@@ -871,6 +871,8 @@ func handleMessage(ac atmi.ATMICtx, svc ServiceMap, w http.ResponseWriter,
                                return atmi.FAIL
                        }

+                       if errU := bufu.BAdd(ubftab.EX_IF_METHOD, req.Method); nil != errU {
+            }
                        //Load the request URL
                        if errU := bufu.BAdd(ubftab.EX_IF_URL, req.URL.Path); nil != errU {

diff --git a/go/src/ubftab/Exfields b/go/src/ubftab/Exfields
index 00b5729..8b3bb8a 100644
--- a/go/src/ubftab/Exfields
+++ b/go/src/ubftab/Exfields
@@ -212,6 +212,8 @@ EX_IF_URCODE                530         long  -         User return code
 EX_IF_REQDATA               531         carray -        Request data / body
 EX_IF_RSPDATA               532         carray -        Response data / body

+EX_IF_METHOD                540         string -        HTTP method
+
 ################################################################################
 # TCP Inter-connecting
 ################################################################################

#2 Updated by Madars over 4 years ago

#3 Updated by Madars about 4 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#4 Updated by Madars about 4 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF