Page MenuHomeFeedback Tracker

Suggestion: RestContext.SetHeader( string name, string value );
Assigned, UrgentPublic

Description

At the moment, RestContext.SetHeader(string value) (3_Game/http/restapi.c) can only be used to set the content type. I suggest to change it to SetHeader(string value, string header = "content-type"). This way, it stays backwards compatible, and with a simple if clause, arbitrary headers could be set.

I need this because I'd like to query a REST endpoint that requires things like X-Api-Key-Id.

Details

Severity
Tweak
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General

Event Timeline

inkihh created this task.Mar 13 2021, 10:34 AM
Geez changed the task status from New to Assigned.Mar 15 2021, 12:32 PM
Krypton91 added a subscriber: Geez.

@Geez any updates to this?