Accept Property

A list of acceptable MIME types for the request.

Syntax

ANSI (Cross Platform)
char* GetAccept();
int SetAccept(const char* lpszAccept); Unicode (Windows) LPWSTR GetAccept();
INT SetAccept(LPCWSTR lpszAccept);
@property (nonatomic,readwrite,assign,getter=accept,setter=setAccept:) NSString* accept;
- (NSString*)accept;
- (void)setAccept:(NSString*)newAccept;
#define PID_WEBFORM_ACCEPT 1

IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_WebForm_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_WebForm_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

If this property contains a non-empty string, an HTTP Accept header is added to the request.

The Accept header is used for content negotiation. It provides the server with a comma-separated list of MIME types that are acceptable for its response.

Data Type

String

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 C++ Edition - Version 20.0 [Build 8161]