Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for PostForm (0.17 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/kt/PostForm.kt

     */
    package okhttp3.recipes.kt
    
    import java.io.IOException
    import okhttp3.FormBody
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Request
    
    class PostForm {
      private val client = OkHttpClient()
    
      fun run() {
        val formBody =
          FormBody.Builder()
            .add("search", "Jurassic Park")
            .build()
        val request =
          Request(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  2. cmd/sts-handlers.go

    		return auth.Credentials{}, ErrAccessDenied
    	}
    
    	return user, ErrNone
    }
    
    func parseForm(r *http.Request) error {
    	if err := r.ParseForm(); err != nil {
    		return err
    	}
    	for k, v := range r.PostForm {
    		if _, ok := r.Form[k]; !ok {
    			r.Form[k] = v
    		}
    	}
    	return nil
    }
    
    // getTokenSigningKey returns secret key used to sign JWT session tokens
    func getTokenSigningKey() (string, error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 21:31:13 GMT 2024
    - 34.7K bytes
    - Viewed (2)
Back to top