---
title: "OBEXAddHTTPHeader(_:_:_:)"
framework: IOBluetooth
role: symbol
role_heading: Function
path: "iobluetooth/obexaddhttpheader(_:_:_:)"
---

# OBEXAddHTTPHeader(_:_:_:)

Add bytes of data to a dictionary of OBEXheaders.

## Declaration

```swift
func OBEXAddHTTPHeader(_ inHeaderData: UnsafeRawPointer!, _ inHeaderDataLength: UInt32, _ dictRef: CFMutableDictionary!) -> OBEXError
```

## Parameters

- `inHeaderData`: HTTP header data.
- `inHeaderDataLength`: Length of HTTP header data.
- `dictRef`: Dictionary you have allocated to hold the headers. Make sure it’s mutable.

## Return Value

Return Value Error code, kOBEXSuccess (0) if success.

## Discussion

Discussion HTTP header - OBEX Spec, 2.2.8: Byte Sequence

## See Also

### Miscellaneous

- [OBEXAddApplicationParameterHeader(_:_:_:)](iobluetooth/obexaddapplicationparameterheader(_:_:_:).md)
- [OBEXAddAuthorizationChallengeHeader(_:_:_:)](iobluetooth/obexaddauthorizationchallengeheader(_:_:_:).md)
- [OBEXAddAuthorizationResponseHeader(_:_:_:)](iobluetooth/obexaddauthorizationresponseheader(_:_:_:).md)
- [OBEXAddBodyHeader(_:_:_:_:)](iobluetooth/obexaddbodyheader(_:_:_:_:).md)
- [OBEXAddByteSequenceHeader(_:_:_:)](iobluetooth/obexaddbytesequenceheader(_:_:_:).md)
- [OBEXAddConnectionIDHeader(_:_:_:)](iobluetooth/obexaddconnectionidheader(_:_:_:).md)
- [OBEXAddCountHeader(_:_:)](iobluetooth/obexaddcountheader(_:_:).md)
- [OBEXAddDescriptionHeader(_:_:)](iobluetooth/obexadddescriptionheader(_:_:).md)
- [OBEXAddLengthHeader(_:_:)](iobluetooth/obexaddlengthheader(_:_:).md)
- [OBEXAddNameHeader(_:_:)](iobluetooth/obexaddnameheader(_:_:).md)
- [OBEXAddObjectClassHeader(_:_:_:)](iobluetooth/obexaddobjectclassheader(_:_:_:).md)
- [OBEXAddTargetHeader(_:_:_:)](iobluetooth/obexaddtargetheader(_:_:_:).md)
- [OBEXAddTime4ByteHeader(_:_:)](iobluetooth/obexaddtime4byteheader(_:_:).md)
- [OBEXAddTimeISOHeader(_:_:_:)](iobluetooth/obexaddtimeisoheader(_:_:_:).md)
- [OBEXAddTypeHeader(_:_:)](iobluetooth/obexaddtypeheader(_:_:).md)
