title: How to send content type in a request while doing parsing using Alamofire networking in Swift?
body: <p>I am new to Swift. I want to parse a graphql webservice where i need to send the content type to header as &quot;application/graphql&quot;. In general in Objective-C if we are using AFNetworking we can set up the content type as below.</p>
  <pre><code>[requestSerializer setValue:@&quot;application/json&quot; forHTTPHeaderField:@&quot;Accept&quot;];
  </code></pre>
  <p>In Swift i am using Alamofire, i don't have any idea regarding this, that how to set the content type. Being a new comer for Swift, please advised me without hesitation.</p>
  <p>One more thing is graphql service don't accept a proper JSON, Please refer <a href="https://facebook.github.io/react/blog/2015/05/01/graphql-introduction.html" rel="nofollow noreferrer">here</a></p>
  <p>Please suggest me how to post the values to server? by preparing a string is only an answer? (Sorry if i misunderstood graphql). But please don't hesitate. Give your valuable suggestions.Thanks.</p>